From knarf at cct.lsu.edu Thu Feb 28 15:08:10 2008 From: knarf at cct.lsu.edu (Frank Loeffler) Date: Thu, 28 Feb 2008 21:08:10 -0000 Subject: [Patches] fix bash warning Message-ID: <20080228210755.GE3224@numrel07.cct.lsu.edu> Hi, this patch fixes a bash warning about -ge being used as a unary operator because one of the arguments is undefined. Frank -------------- next part -------------- Index: lib/make/known-architectures/linux =================================================================== RCS file: /cactusdevcvs/Cactus/lib/make/known-architectures/linux,v retrieving revision 1.126 diff -u -r1.126 linux --- lib/make/known-architectures/linux 18 Feb 2008 18:03:32 -0000 1.126 +++ lib/make/known-architectures/linux 28 Feb 2008 21:03:21 -0000 @@ -400,6 +400,8 @@ else : ${CXXFLAGS='-restrict'} fi + icpc_fullversion=`$CXX -V 2>&1 | grep Version | sed 's/.*Version //' | cut -c1-3` + icpc_version=`echo $icpc_fullversion | cut -f1 -d.` if test -z "$CXX_OPTIMISE_FLAGS"; then if test "$host_cpu" = 'ia64' -o "$host_cpu" = 'x86_64'; then CXX_OPTIMISE_FLAGS='-O2' @@ -408,12 +410,10 @@ fi # Intel 8.1 and 9.0 have a bug when using anonymous namespaces # taking out '-ip' bypasses this optimization bug - icpc_fullversion=`$CXX -V 2>&1 | grep Version | sed 's/.*Version //' | cut -c1-3` if test "$icpc_fullversion" != '8.1' -a "$icpc_fullversion" != '9.0'; then CXX_OPTIMISE_FLAGS="$CXX_OPTIMISE_FLAGS -ip" fi fi - icpc_version=`echo $icpc_fullversion | cut -f1 -d.` if test $icpc_version -ge 8; then cxx_warn_flags='-Wall -w1 -Wcheck' else