aboutsummaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorMarcel Raad <raad@teamviewer.com>2017-06-16 14:13:41 +0200
committerMarcel Raad <raad@teamviewer.com>2017-06-16 22:32:13 +0200
commit5bdf835c0b2e558ec885ba539f6b6307c4ab9787 (patch)
tree838f1335979d69f486f868b1f43fdf91a7d3362d /m4
parent32ec3063df81161f87ef8eca6f3c7c78e19baff9 (diff)
curl-compilers.m4: enable comma clang warning
It usually warns when using commas instead of semicolons or other operators by accident. Closes https://github.com/curl/curl/pull/1578
Diffstat (limited to 'm4')
-rw-r--r--m4/curl-compilers.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4
index 9efe2ae23..a1801df97 100644
--- a/m4/curl-compilers.m4
+++ b/m4/curl-compilers.m4
@@ -901,6 +901,11 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
if test "$compiler_num" -ge "306"; then
tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
fi
+ #
+ dnl Only clang 3.9 or later
+ if test "$compiler_num" -ge "309"; then
+ tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
+ fi
fi
;;
#