aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-06-29 16:40:23 +0200
committerYang Tse <yangsita@gmail.com>2012-06-29 16:40:23 +0200
commit60d5a16b998e5c38947a6420321e504f8e14ef96 (patch)
tree6a65be63ac2052bbf3233fcbbcc22b05726033b1
parentfebd59859725e8792b02374daa099ffb3972624d (diff)
curl-compilers.m4: remove -Wstrict-aliasing=3 from clang
Currently it is unknown if there is any version of clang that actually supports -Wstrict-aliasing. What is known is that there are several that don't support it.
-rw-r--r--m4/curl-compilers.m45
1 files changed, 1 insertions, 4 deletions
diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4
index 29507bae3..0cbba7a09 100644
--- a/m4/curl-compilers.m4
+++ b/m4/curl-compilers.m4
@@ -21,7 +21,7 @@
#***************************************************************************
# File version for 'aclocal' use. Keep it a single number.
-# serial 62
+# serial 63
dnl CURL_CHECK_COMPILER
@@ -856,8 +856,6 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
CLANG)
#
if test "$want_warnings" = "yes"; then
- dnl All versions of clang support the same warnings as at least
- dnl gcc 4.2.1 except -Wunused.
tmp_CFLAGS="$tmp_CFLAGS -pedantic"
tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
@@ -875,7 +873,6 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
- tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
#
dnl Only clang 1.1 or later
if test "$compiler_num" -ge "101"; then