SET(CMAKE_BUILD_TYPE "Release" CACHE STRING "release")
IF(CMAKE_BUILD_TYPE STREQUAL "Release")
- SET(CMAKE_C_FLAGS "-std=c99 -fPIC -Wall -Wextra -Werror -pedantic" CACHE STRING "compiler flags" FORCE)
+ SET(CMAKE_C_FLAGS "-std=c99 -fPIC -Wall -Wextra -Wno-unused-parameter -Werror -pedantic" CACHE STRING "compiler flags" FORCE)
ENDIF()
IF(CMAKE_BUILD_TYPE STREQUAL "Debug")
- SET(CMAKE_C_FLAGS "-std=c99 -fPIC -Wall -Wextra -pedantic -g" CACHE STRING "debug compiler flags" FORCE)
+ SET(CMAKE_C_FLAGS "-std=c99 -fPIC -Wall -Wextra -Wno-unused-parameter -pedantic -g" CACHE STRING "debug compiler flags" FORCE)
ENDIF()
IF (RUN_TESTS)
-ftest-coverage \
-Wall \
-Wextra \
+-Wno-unused-parameter \
-pedantic \
-g \
-fsanitize=address \
uint32_t curr_width = 0;
uint32_t curr_height = 0;
- for (int i = 0; i < size; i++) {
+ for (uint32_t i = 0; i < size; i++) {
_kds_s2000w_image_converter_set_pixels(data[i], &pixels[curr_height][curr_width]);
curr_width += 8;