2014-05-01 19:55:31 +04:00
|
|
|
diff --git a/intl/icu/source/acinclude.m4 b/intl/icu/source/acinclude.m4
|
|
|
|
--- a/intl/icu/source/acinclude.m4
|
|
|
|
+++ b/intl/icu/source/acinclude.m4
|
2018-06-22 14:39:39 +03:00
|
|
|
@@ -469,30 +469,36 @@ AC_DEFUN([AC_CHECK_STRICT_COMPILE],
|
2014-05-01 19:55:31 +04:00
|
|
|
*)
|
|
|
|
# Do not use -ansi. It limits us to C90, and it breaks some platforms.
|
2018-06-22 14:39:39 +03:00
|
|
|
# We use -std=c11 to disable the gnu99 defaults and its associated warnings
|
|
|
|
CFLAGS="$CFLAGS -std=c11"
|
2014-05-01 19:55:31 +04:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
|
|
|
|
+
|
|
|
|
+ # Suppress clang C warnings:
|
|
|
|
+ CFLAGS="$CFLAGS -Wno-sign-compare -Wno-unused"
|
|
|
|
else
|
|
|
|
case "${host}" in
|
|
|
|
*-*-cygwin)
|
|
|
|
if test "`$CC /help 2>&1 | head -c9`" = "Microsoft"
|
|
|
|
then
|
|
|
|
CFLAGS="$CFLAGS /W4"
|
|
|
|
fi ;;
|
2015-06-13 00:25:23 +03:00
|
|
|
*-*-mingw*)
|
2014-05-01 19:55:31 +04:00
|
|
|
CFLAGS="$CFLAGS -W4" ;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
if test "$GXX" = yes
|
|
|
|
then
|
|
|
|
CXXFLAGS="$CXXFLAGS -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
|
|
|
|
+
|
|
|
|
+ # Suppress clang C++ warnings:
|
|
|
|
+ CXXFLAGS="$CXXFLAGS -Wno-unused -Wno-unused-parameter"
|
|
|
|
else
|
|
|
|
case "${host}" in
|
|
|
|
*-*-cygwin)
|
|
|
|
if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft"
|
|
|
|
then
|
|
|
|
CXXFLAGS="$CXXFLAGS /W4"
|
|
|
|
fi ;;
|
2015-06-13 00:25:23 +03:00
|
|
|
*-*-mingw*)
|
2014-05-01 19:55:31 +04:00
|
|
|
diff --git a/intl/icu/source/configure b/intl/icu/source/configure
|
|
|
|
--- a/intl/icu/source/configure
|
|
|
|
+++ b/intl/icu/source/configure
|
2018-06-22 14:39:39 +03:00
|
|
|
@@ -4359,30 +4359,36 @@ fi
|
2014-05-01 19:55:31 +04:00
|
|
|
*)
|
|
|
|
# Do not use -ansi. It limits us to C90, and it breaks some platforms.
|
2018-06-22 14:39:39 +03:00
|
|
|
# We use -std=c11 to disable the gnu99 defaults and its associated warnings
|
|
|
|
CFLAGS="$CFLAGS -std=c11"
|
2014-05-01 19:55:31 +04:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
|
|
|
|
+
|
|
|
|
+ # Suppress clang C warnings:
|
|
|
|
+ CFLAGS="$CFLAGS -Wno-sign-compare -Wno-unused"
|
|
|
|
else
|
|
|
|
case "${host}" in
|
|
|
|
*-*-cygwin)
|
|
|
|
if test "`$CC /help 2>&1 | head -c9`" = "Microsoft"
|
|
|
|
then
|
|
|
|
CFLAGS="$CFLAGS /W4"
|
|
|
|
fi ;;
|
2015-06-13 00:25:23 +03:00
|
|
|
*-*-mingw*)
|
2014-05-01 19:55:31 +04:00
|
|
|
CFLAGS="$CFLAGS -W4" ;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
if test "$GXX" = yes
|
|
|
|
then
|
|
|
|
CXXFLAGS="$CXXFLAGS -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
|
|
|
|
+
|
|
|
|
+ # Suppress clang C++ warnings:
|
|
|
|
+ CXXFLAGS="$CXXFLAGS -Wno-unused -Wno-unused-parameter"
|
|
|
|
else
|
|
|
|
case "${host}" in
|
|
|
|
*-*-cygwin)
|
|
|
|
if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft"
|
|
|
|
then
|
|
|
|
CXXFLAGS="$CXXFLAGS /W4"
|
|
|
|
fi ;;
|
2015-06-13 00:25:23 +03:00
|
|
|
*-*-mingw*)
|