From bf7fc613066771c36c82e7d73bd80c7245c6d618 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 13 Dec 2020 12:50:26 -0800 Subject: 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. --- configure | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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= -- cgit v1.2.3