diff options
author | hwspeedy <ns@bigbear.dk> | 2024-05-24 10:20:25 +0200 |
---|---|---|
committer | hwspeedy <ns@bigbear.dk> | 2024-05-24 10:20:25 +0200 |
commit | a8ccc2aa89c78108566c67b9e853797ea451f9c8 (patch) | |
tree | 9499a58b04a6baf1ab4a0741f7a31d3ddbc0fbc8 /CMakeLists.txt | |
parent | 25c366a8074af72c0811a960b947302bed036669 (diff) |
FIX GCC Warnings, added more checking to gcc flags
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d5c6eb2..782a3925 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -326,12 +326,13 @@ set_source_files_properties( hardinfo2/problem_marker.c hardinfo2/hinote_util.c PROPERTIES - COMPILE_FLAGS "-std=c99 -Wall -Wextra -Wno-unused-function -Wno-switch -Werror=implicit-function-declaration" + COMPILE_FLAGS "-std=c99 -Wall -Wextra -Wno-unused-function -Wno-switch -Werror=implicit-function-declaration" ) foreach (_module ${HARDINFO2_MODULES}) add_library(${_module} MODULE ${MODULE_${_module}_SOURCES}) set_target_properties(${_module} PROPERTIES PREFIX "") + set_target_properties(${_module} PROPERTIES COMPILE_FLAGS "-Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-missing-braces -Wno-switch -Werror=implicit-function-declaration") target_link_libraries(${_module} ${JSON_GLIB_LIBRARIES}) endforeach() |