From 1bb386a759a67c95d12fa1165332d1e1afbb5f1c Mon Sep 17 00:00:00 2001 From: Andy Date: Thu, 13 Oct 2022 16:35:19 -0600 Subject: added check for compiler support of Wextra-semi update AX_CHECK_COMPILE_FLAG function call --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 6ab7903010..74ea8050ed 100644 --- a/configure.ac +++ b/configure.ac @@ -2357,7 +2357,6 @@ if test "x$enable_gcc_warnings_advisory" != "xno"; then -Wexplicit-ownership-type -Wextern-initializer -Wextra - -Wextra-semi -Wextra-tokens -Wflexible-array-extensions -Wfloat-conversion @@ -2504,6 +2503,8 @@ if test "x$enable_gcc_warnings_advisory" != "xno"; then ], [ TOR_TRY_COMPILE_WITH_CFLAGS(warning_flag, [], [TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS warning_flag" CFLAGS="$CFLAGS warning_flag"], true) ]) + + AX_CHECK_COMPILE_FLAG([-Wextra-semi], [CFLAGS="$CFLAGS -Wextra-semi"], [], [-Werror]) dnl We should re-enable this in some later version. Clang doesn't dnl mind, but it causes trouble with GCC. -- cgit v1.2.3-54-g00ecf