Skip to content

Commit

Permalink
Restore compiler warnings to autotools build level
Browse files Browse the repository at this point in the history
In autotools, we used to test whether -Wempty-body is supported, but
that was newish in 2009 so maybe we can now just assume.
  • Loading branch information
pmatilai committed Nov 18, 2022
1 parent 5346107 commit d69b94c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ add_compile_definitions(SYSCONFDIR="${CMAKE_INSTALL_FULL_SYSCONFDIR}")
add_compile_definitions(LIBRPMALIAS_FILENAME="rpmpopt-${PROJECT_VERSION}")
add_compile_definitions(LIBRPMALIAS_EXECPATH="${CMAKE_INSTALL_FULL_BINDIR}")

add_compile_options(-Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wempty-body)
if (ENABLE_WERROR)
add_compile_options(-Werror)
endif()
Expand Down

0 comments on commit d69b94c

Please sign in to comment.