[Olsr-cvs] olsrd-current gcc-warnings,1.6,1.7
Bernd Petrovitsch
(spam-protected)
Thu Dec 6 19:17:38 CET 2007
Update of /cvsroot/olsrd/olsrd-current
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv15089
Modified Files:
gcc-warnings
Log Message:
* make it work with gcc-3.2.3 and beautified it
Index: gcc-warnings
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/gcc-warnings,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** gcc-warnings 12 Nov 2007 00:12:15 -0000 1.6
--- gcc-warnings 6 Dec 2007 18:17:35 -0000 1.7
***************
*** 1,6 ****
#!/bin/sh
#
! # We expect warning options for gcc as argumenst and return the ones which are accepted
! # by the given gcc.
#
# $Id$
--- 1,6 ----
#!/bin/sh
#
! # We expect warning options for gcc as arguments and return the ones which are
! # accepted by the given gcc.
#
# $Id$
***************
*** 21,25 ****
testcompile() {
! $CC $OPTS -E - 2>&1 <<- EOF
int main(void) {
return 0;
--- 21,25 ----
testcompile() {
! $CC $OPTS -x c - 2>&1 <<- EOF
int main(void) {
return 0;
***************
*** 30,44 ****
parsetest() {
while read error; do
! case "$error" in
! *error:\ unrecognized\ *option\ \"*)
! opt="${error#*\"}"
! opt="${opt%\"*}"
! OPTS="${OPTS//$opt}"
! ;;
! *error:\ unrecognized\ *option\ \`*)
! opt="${error#*\`}"
! opt="${opt%\'*}"
! OPTS="${OPTS//$opt}"
! ;;
esac
done
--- 30,44 ----
parsetest() {
while read error; do
! case "$error" in
! *:\ unrecognized\ *option\ \"*)
! opt="${error#*\"}"
! opt="${opt%\"*}"
! OPTS="${OPTS//$opt}"
! ;;
! *:\ unrecognized\ *option\ \`*)
! opt="${error#*\`}"
! opt="${opt%\'*}"
! OPTS="${OPTS//$opt}"
! ;;
esac
done
More information about the Olsr-cvs
mailing list