From 54a1377a5985463d8ba474f9d0ad3fa3a7aaad06 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 23 Dec 2020 06:31:30 -0800 Subject: configure: get rid of -Wold-style-declaration * configure (diag_flags): Remove the -Wold-style-declaration option. It is not useful, unlike -Wold-style-definition; it warns agains some unspecified old style usages, like storage class specifiers not being first. Moreover, clang 10 does not recognize this option and complains. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 75fd7591..12b97e87 100755 --- a/configure +++ b/configure @@ -161,7 +161,7 @@ opt_flags='-O2 -fno-stack-protector' lang_flags='-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 \ - -Werror=old-style-declaration -Werror=old-style-definition" + -Werror=old-style-definition" debug_flags=-g debug_only_flags=-DTXR_DEBUG debug_also= -- cgit v1.2.3