diff options
| author | Sebastian Rasmussen <sebras@gmail.com> | 2023-03-09 19:20:58 +0100 |
|---|---|---|
| committer | Sebastian Rasmussen <sebras@gmail.com> | 2023-03-09 20:09:27 +0100 |
| commit | eb8a7e44279415fdefda6d980b99bd7e00c41da0 (patch) | |
| tree | eb807e6704df2b72424ef5d4f56211855c281e38 /CMakeLists.txt | |
| parent | 1a8d13e2c51cc59507b361a9c0d1cf51201f7d02 (diff) | |
CMake: error out on warnings for strict/missing prototypes.
And fix strict-prototypes/missing-prototypes warnings.
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 292b2132..8acca166 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -175,7 +175,7 @@ if(CMAKE_COMPILER_IS_GNUCC) # set(CMAKE_C_FLAGS "-Wall -std=c99 ${CMAKE_C_FLAGS}") # FIXME: this setting prevented us from setting a coverage build. # Do not use ffast-math for all build, it would produce incorrect results, only set for release: set(OPENJPEG_LIBRARY_COMPILE_OPTIONS ${OPENJPEG_LIBRARY_COMPILE_OPTIONS} "$<$<CONFIG:Release>:-ffast-math>") - set(OPENJP2_COMPILE_OPTIONS ${OPENJP2_COMPILE_OPTIONS} "$<$<CONFIG:Release>:-ffast-math>" -Wall -Wextra -Wconversion -Wunused-parameter -Wdeclaration-after-statement -Werror=declaration-after-statement) + set(OPENJP2_COMPILE_OPTIONS ${OPENJP2_COMPILE_OPTIONS} "$<$<CONFIG:Release>:-ffast-math>" -Wall -Wextra -Wconversion -Wunused-parameter -Wdeclaration-after-statement -Werror=declaration-after-statement -Wstrict-prototypes -Werror=strict-prototypes -Wmissing-prototypes -Werror=missing-prototypes) endif() #----------------------------------------------------------------------------- |
