diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-12-26 16:41:09 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-12-29 17:14:53 +0100 |
commit | 52b0f9bea270d858e7e8d14399dd1425e09ffbc4 (patch) | |
tree | 7a3309b0ad3ccadd0c0aa6074cdffae4800faaa1 | |
parent | 68dde8e330a2580c1af3f34cc1971716948c307b (diff) | |
download | curl-52b0f9bea270d858e7e8d14399dd1425e09ffbc4.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
-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 ;; |