From 164abc50050ed75b5d8d71ab85ba517255367bdc Mon Sep 17 00:00:00 2001 From: Yves Arrouye Date: Fri, 12 May 2000 01:09:51 +0000 Subject: [PATCH] ICU-348 added -ansi to gcc's strict options (needs j390 to work). X-SVN-Rev: 1353 --- icu4c/source/aclocal.m4 | 4 ++-- icu4c/source/configure | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/icu4c/source/aclocal.m4 b/icu4c/source/aclocal.m4 index c862a9a11c..d55c1b3280 100644 --- a/icu4c/source/aclocal.m4 +++ b/icu4c/source/aclocal.m4 @@ -91,11 +91,11 @@ AC_DEFUN(AC_CHECK_STRICT_COMPILE, then if test "$GCC" = yes then - CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings" + CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings" fi if test "$GXX" = yes then - CXXFLAGS="$CXXFLAGS -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings" + CXXFLAGS="$CXXFLAGS -Wall -ansi -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings" fi fi ]) diff --git a/icu4c/source/configure b/icu4c/source/configure index d4dd85af50..9c470d3bd1 100755 --- a/icu4c/source/configure +++ b/icu4c/source/configure @@ -1081,11 +1081,11 @@ fi then if test "$GCC" = yes then - CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings" + CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings" fi if test "$GXX" = yes then - CXXFLAGS="$CXXFLAGS -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings" + CXXFLAGS="$CXXFLAGS -Wall -ansi -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings" fi fi