diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-12-13 12:50:26 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-12-13 12:50:26 -0800 |
commit | 99d2eedbe9c1549c4ebd990e590d8a6a1c1ae588 (patch) | |
tree | c445d0afbb47a00d2eb5a94f28956cf36bdeb246 /configure | |
parent | b16e0a6ba541332bf0f6849ba4af28b4e233fe46 (diff) | |
download | txr-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-x | configure | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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= |