summaryrefslogtreecommitdiff
path: root/mcon/U/ccflags.U
diff options
context:
space:
mode:
authorManoj Srivastava <srivasta@debian.org>2020-05-19 21:29:57 -0700
committerManoj Srivastava <srivasta@debian.org>2020-05-19 21:29:57 -0700
commit11948971f110800dc35b4f6fec90cc01bebd6a7e (patch)
treed69e6f034efc4ace4c2d573a50153b7a875915f1 /mcon/U/ccflags.U
parent7c4aad4e01c8278e073d28a5c1f59b12582431c1 (diff)
parent50ca5b27f2f7c51d062b3a89d334f7243f467078 (diff)
Diffstat (limited to 'mcon/U/ccflags.U')
-rw-r--r--mcon/U/ccflags.U8
1 files changed, 4 insertions, 4 deletions
diff --git a/mcon/U/ccflags.U b/mcon/U/ccflags.U
index 942e462..b134f57 100644
--- a/mcon/U/ccflags.U
+++ b/mcon/U/ccflags.U
@@ -174,11 +174,11 @@ dflt=''
case "$hint" in
default|recommended)
case "$gccversion" in
- 1*) dflt='-fpcc-struct-return' ;;
+ 1) dflt='-fpcc-struct-return' ;;
esac
?X: check for POSIXized ISC
case "$gccversion" in
- 2*) if test -d /etc/conf/kconfig.d &&
+ 2) if test -d /etc/conf/kconfig.d &&
$contains _POSIX_VERSION $usrinc/sys/unistd.h >/dev/null 2>&1
then
dflt="$dflt -posix"
@@ -187,7 +187,7 @@ default|recommended)
esac
?X: turn warnings on if they're using gcc
case "$gccversion" in
- 1*|2*) dflt="$dflt -Wall";;
+ 1|2) dflt="$dflt -Wall";;
?X: starting with version 3, add "-W -Wall -Wformat=2 -Wshadow" by default
*) dflt="$dflt -W -Wall -Wformat=2 -Wshadow";;
esac
@@ -265,7 +265,7 @@ esac
: the following weeds options from ccflags that are of no interest to cpp
cppflags="$ccflags"
case "$gccversion" in
-1*) cppflags="$cppflags -D__GNUC__"
+1) cppflags="$cppflags -D__GNUC__"
esac
case "$mips_type" in
'');;