1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

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

View File

@ -901,6 +901,11 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
if test "$compiler_num" -ge "306"; then if test "$compiler_num" -ge "306"; then
tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion" tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
fi fi
#
dnl Only clang 3.9 or later
if test "$compiler_num" -ge "309"; then
tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
fi
fi fi
;; ;;
# #