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:
parent
32ec3063df
commit
5bdf835c0b
@ -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
|
||||
;;
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user