]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: set -Wextra-semi-stmt for clang with --enable-debug
authorDaniel Stenberg <daniel@haxx.se>
Sat, 26 Dec 2020 15:41:09 +0000 (16:41 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 29 Dec 2020 22:02:43 +0000 (23:02 +0100)
To have it properly complain on empty statements with no effect.

Ref: #6376
Closes #6378

m4/curl-compilers.m4

index 59ac340c0f429fad7a856f532ee018bec918ad55..8886a469a401c7b2c6aefe81f5771a7f1bcc4fd9 100644 (file)
@@ -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
         ;;