c++: avoid warnings about extraneous semi-colons

Reported by Derek Clegg.
http://lists.gnu.org/archive/html/bug-bison/2019-01/msg00005.html

* configure.ac (warn_cxx): Add -Wextra-semi.
* data/skeletons/c++.m4: Remove extraneous semi-colon.
This commit is contained in:
Akim Demaille
2019-01-14 08:40:06 +01:00
parent 38b17c36da
commit 3551d51dd9
2 changed files with 2 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ if test "$enable_gcc_warnings" = yes; then
-fparse-all-comments -Wdocumentation
-Wformat -Wnull-dereference -Wpointer-arith -Wshadow -Wwrite-strings'
warn_c='-Wbad-function-cast -Wstrict-prototypes'
warn_cxx='-Wnoexcept'
warn_cxx='-Wextra-semi -Wnoexcept'
# Warnings for the test suite only.
#
# -fno-color-diagnostics: Clang's use of colors in the error