summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-12-13 12:50:26 -0800
committerKaz Kylheku <kaz@kylheku.com>2020-12-13 12:50:26 -0800
commit99d2eedbe9c1549c4ebd990e590d8a6a1c1ae588 (patch)
treec445d0afbb47a00d2eb5a94f28956cf36bdeb246 /configure
parentb16e0a6ba541332bf0f6849ba4af28b4e233fe46 (diff)
downloadtxr-99d2eedbe9c1549c4ebd990e590d8a6a1c1ae588.tar.gz
txr-99d2eedbe9c1549c4ebd990e590d8a6a1c1ae588.tar.bz2
txr-99d2eedbe9c1549c4ebd990e590d8a6a1c1ae588.zip
build: add more warnings against ancient C.
* configure (diag_flags): Add warning options agains defining an old style C function, and against obsolecent features in declarations.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure b/configure
index b824fd35..885a531f 100755
--- a/configure
+++ b/configure
@@ -159,7 +159,9 @@ yacc_is_newer_bison=
nm='$(cross)$(tool_prefix)nm'
opt_flags='-O2 -fno-stack-protector'
lang_flags='-ansi -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200112 -D_GNU_SOURCE'
-diag_flags='-Wall -Wextra -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=strict-prototypes'
+diag_flags="-Wall -Wextra -Werror=implicit-function-declaration \
+ -Werror=missing-prototypes -Werror=strict-prototypes \
+ -Werror=old-style-declaration -Werror=old-style-definition"
debug_flags=-g
debug_only_flags=-DTXR_DEBUG
debug_also=