diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-12-26 16:41:09 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-12-29 23:02:43 +0100 |
commit | 26e46617b9ef6cac9853854db5d5f6250a435392 (patch) | |
tree | 74bfe4c228c246f323de6b6520aef2ba6f1e84aa /m4 | |
parent | b9746575a9677b9b34eae92398e6ecdf08b3d5f7 (diff) | |
download | curl-26e46617b9ef6cac9853854db5d5f6250a435392.tar.gz |
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
Diffstat (limited to 'm4')
-rw-r--r-- | m4/curl-compilers.m4 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4 index 59ac340c0..8886a469a 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 ;; |