From 55bf52860eac5c1394dc344a691220272df32b09 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Mon, 14 Jan 2019 08:40:06 +0100 Subject: [PATCH] c++: avoid warnings about extraneous semi-colons Reported by Derek Clegg. * configure.ac (warn_common): Add -Wextra-semi. * data/skeletons/c++.m4: Remove extraneous semi-colon. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index e60af602..4fb7e831 100644 --- a/configure.ac +++ b/configure.ac @@ -95,7 +95,7 @@ AC_ARG_ENABLE([gcc-warnings], AM_CONDITIONAL([ENABLE_GCC_WARNINGS], [test "$enable_gcc_warnings" = yes]) if test "$enable_gcc_warnings" = yes; then warn_common='-Wall -Wextra -Wno-sign-compare -Wcast-align - -fparse-all-comments -Wdocumentation + -fparse-all-comments -Wdocumentation -Wextra-semi -Wformat -Wnull-dereference -Wpointer-arith -Wshadow -Wwrite-strings' warn_c='-Wbad-function-cast -Wstrict-prototypes' warn_cxx='-Wextra-semi -Wnoexcept'