Debian Codegraph @

intl/icu-patches/suppress-warnings.diff

raw
1 diff --git a/intl/icu/source/acinclude.m4 b/intl/icu/source/acinclude.m4
2 --- a/intl/icu/source/acinclude.m4
3 +++ b/intl/icu/source/acinclude.m4
4 @@ -459,30 +459,36 @@ AC_DEFUN([AC_CHECK_STRICT_COMPILE],
5 ], [ac_use_strict_options=yes])
6 AC_MSG_RESULT($ac_use_strict_options)
7
8 if test "$ac_use_strict_options" = yes
9 then
10 if test "$GCC" = yes
11 then
12 CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
13 +
14 + # Suppress clang C warnings:
15 + CFLAGS="$CFLAGS -Wno-sign-compare -Wno-unused"
16 else
17 case "${host}" in
18 *-*-cygwin)
19 if test "`$CC /help 2>&1 | head -c9`" = "Microsoft"
20 then
21 CFLAGS="$CFLAGS /W4"
22 fi ;;
23 *-*-mingw*)
24 CFLAGS="$CFLAGS -W4" ;;
25 esac
26 fi
27 if test "$GXX" = yes
28 then
29 CXXFLAGS="$CXXFLAGS -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
30 +
31 + # Suppress clang C++ warnings:
32 + CXXFLAGS="$CXXFLAGS -Wno-unused -Wno-unused-parameter"
33 else
34 case "${host}" in
35 *-*-cygwin)
36 if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft"
37 then
38 CXXFLAGS="$CXXFLAGS /W4"
39 fi ;;
40 *-*-mingw*)
41 diff --git a/intl/icu/source/configure b/intl/icu/source/configure
42 --- a/intl/icu/source/configure
43 +++ b/intl/icu/source/configure
44 @@ -5227,30 +5227,36 @@ fi
45 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_use_strict_options" >&5
46 printf "%s\n" "$ac_use_strict_options" >&6; }
47
48 if test "$ac_use_strict_options" = yes
49 then
50 if test "$GCC" = yes
51 then
52 CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
53 +
54 + # Suppress clang C warnings:
55 + CFLAGS="$CFLAGS -Wno-sign-compare -Wno-unused"
56 else
57 case "${host}" in
58 *-*-cygwin)
59 if test "`$CC /help 2>&1 | head -c9`" = "Microsoft"
60 then
61 CFLAGS="$CFLAGS /W4"
62 fi ;;
63 *-*-mingw*)
64 CFLAGS="$CFLAGS -W4" ;;
65 esac
66 fi
67 if test "$GXX" = yes
68 then
69 CXXFLAGS="$CXXFLAGS -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
70 +
71 + # Suppress clang C++ warnings:
72 + CXXFLAGS="$CXXFLAGS -Wno-unused -Wno-unused-parameter"
73 else
74 case "${host}" in
75 *-*-cygwin)
76 if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft"
77 then
78 CXXFLAGS="$CXXFLAGS /W4"
79 fi ;;
80 *-*-mingw*)