From: Daniel Stenberg Date: Sat, 26 Dec 2020 15:41:09 +0000 (+0100) Subject: configure: set -Wextra-semi-stmt for clang with --enable-debug X-Git-Tag: curl-7_75_0~167 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=26e46617b9;p=thirdparty%2Fcurl.git 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 --- 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 ;;