summaryrefslogtreecommitdiffstats
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
commitbf7fc613066771c36c82e7d73bd80c7245c6d618 (patch)
treec445d0afbb47a00d2eb5a94f28956cf36bdeb246
parent41c1ca013d6bc3ba2d6634703be8c5fb7cae9f9d (diff)
downloadtxr-bf7fc613066771c36c82e7d73bd80c7245c6d618.tar.gz
txr-bf7fc613066771c36c82e7d73bd80c7245c6d618.tar.bz2
txr-bf7fc613066771c36c82e7d73bd80c7245c6d618.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.
-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=