From d69b94ccdbbc3a03b921da16172bf300215f60fc Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Fri, 18 Nov 2022 12:00:24 +0200 Subject: [PATCH] Restore compiler warnings to autotools build level In autotools, we used to test whether -Wempty-body is supported, but that was newish in 2009 so maybe we can now just assume. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0446200b23..61e06c3eee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()