From 26e46617b9ef6cac9853854db5d5f6250a435392 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 26 Dec 2020 16:41:09 +0100 Subject: [PATCH] configure: set -Wextra-semi-stmt for clang with --enable-debug To have it properly complain on empty statements with no effect. Ref: #6376 Closes #6378 --- m4/curl-compilers.m4 | 1 + 1 file changed, 1 insertion(+) diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4 index 59ac340c0f..8886a469a4 100644 --- a/m4/curl-compilers.m4 +++ b/m4/curl-compilers.m4 @@ -948,6 +948,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [ dnl clang 7 or later if test "$compiler_num" -ge "700"; then CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [assign-enum]) + CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [extra-semi-stmt]) fi fi ;;