From fb97e54b2f0134ec4ad926a639dd5b0ea1940c1f Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 23 Apr 2014 16:43:45 -0400 Subject: [PATCH] configure: Add -Wmissing-declarations to maximum compiler warnings set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This helps to catch inconsistent declarations in headers that weren’t included, and local functions that are not marked static. Signed-off-by: Anders Kaseorg --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 7649f0a..c4d5727 100644 --- a/configure.ac +++ b/configure.ac @@ -33,11 +33,11 @@ AC_ARG_ENABLE([compile-warnings], ;; maximum) WARNING_CXXFLAGS="-Wall" - PICKY_CXXFLAGS="-Wextra -pedantic -Wno-long-long -Weffc++" + PICKY_CXXFLAGS="-Wextra -pedantic -Wno-long-long -Weffc++ -Wmissing-declarations" ;; error) WARNING_CXXFLAGS="-Wall -Werror" - PICKY_CXXFLAGS="-Wextra -pedantic -Wno-long-long -Weffc++" + PICKY_CXXFLAGS="-Wextra -pedantic -Wno-long-long -Weffc++ -Wmissing-declarations" ;; *) AC_MSG_ERROR([Unknown argument '$enableval' to --enable-compile-warnings])