curl-compilers.m4: -Wstrict-aliasing=3 for warning enabled gcc and clang builds
This commit is contained in:
parent
a8478fc8d3
commit
f1474db360
@ -21,7 +21,7 @@
|
|||||||
#***************************************************************************
|
#***************************************************************************
|
||||||
|
|
||||||
# File version for 'aclocal' use. Keep it a single number.
|
# File version for 'aclocal' use. Keep it a single number.
|
||||||
# serial 61
|
# serial 62
|
||||||
|
|
||||||
|
|
||||||
dnl CURL_CHECK_COMPILER
|
dnl CURL_CHECK_COMPILER
|
||||||
@ -875,6 +875,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||||||
tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
|
tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
|
tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
|
tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
|
||||||
|
tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
|
||||||
#
|
#
|
||||||
dnl Only clang 1.1 or later
|
dnl Only clang 1.1 or later
|
||||||
if test "$compiler_num" -ge "101"; then
|
if test "$compiler_num" -ge "101"; then
|
||||||
@ -965,6 +966,11 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||||||
tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
|
tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
|
dnl Only gcc 4.0 or later
|
||||||
|
if test "$compiler_num" -ge "400"; then
|
||||||
|
tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
|
||||||
|
fi
|
||||||
|
#
|
||||||
dnl Only gcc 4.2 or later
|
dnl Only gcc 4.2 or later
|
||||||
if test "$compiler_num" -ge "402"; then
|
if test "$compiler_num" -ge "402"; then
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
|
tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user