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 | bf7fc613066771c36c82e7d73bd80c7245c6d618 (patch) | |
tree | c445d0afbb47a00d2eb5a94f28956cf36bdeb246 | |
parent | 41c1ca013d6bc3ba2d6634703be8c5fb7cae9f9d (diff) | |
download | txr-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-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= |