mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Build the C code with additional GCC warnings.
* configure.ac (POTENTIAL_GCC_CFLAGS): Add `-Wdeclaration-after-statement -Wundef -Wswitch-enum'.
This commit is contained in:
parent
56a3dcd431
commit
8bcecbd302
1 changed files with 3 additions and 1 deletions
|
@ -1444,7 +1444,9 @@ case "$GCC" in
|
|||
## less than exasperating.
|
||||
## -Wpointer-arith was here too, but something changed in gcc/glibc
|
||||
## and it became equally exasperating (gcc 2.95 and/or glibc 2.1.2).
|
||||
POTENTIAL_GCC_CFLAGS="-Wall -Wmissing-prototypes"
|
||||
POTENTIAL_GCC_CFLAGS="-Wall -Wmissing-prototypes \
|
||||
-Wdeclaration-after-statement -Wundef \
|
||||
-Wswitch-enum"
|
||||
# Do this here so we don't screw up any of the tests above that might
|
||||
# not be "warning free"
|
||||
if test "${GUILE_ERROR_ON_WARNING}" = yes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue