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
This commit is contained in:
Marcel Raad 2017-06-16 14:13:41 +02:00
parent 32ec3063df
commit 5bdf835c0b
No known key found for this signature in database
GPG Key ID: B4668817AE6D6CD4
1 changed files with 5 additions and 0 deletions

View File

@ -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
;;
#