mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
curl-compilers.m4: enable missing-variable-declarations clang warning
It usually warns when forgetting to declare TU-local variables static. Closes https://github.com/curl/curl/pull/1578
This commit is contained in:
parent
b5c5909f30
commit
32ec3063df
@ -892,6 +892,11 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||
tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"
|
||||
fi
|
||||
#
|
||||
dnl Only clang 3.2 or later
|
||||
if test "$compiler_num" -ge "302"; then
|
||||
tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
|
||||
fi
|
||||
#
|
||||
dnl Only clang 3.6 or later
|
||||
if test "$compiler_num" -ge "306"; then
|
||||
tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
|
||||
|
Loading…
x
Reference in New Issue
Block a user