[Olsr-cvs] olsrd-current Makefile.inc,1.11,1.12
Bernd Petrovitsch
(spam-protected)
Fri Apr 27 13:45:33 CEST 2007
Update of /cvsroot/olsrd/olsrd-current
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv2341
Modified Files:
Makefile.inc
Log Message:
* make it compile on Debian/Sarge with a gcc-3.3.5
Index: Makefile.inc
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/Makefile.inc,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** Makefile.inc 20 Apr 2007 14:05:41 -0000 1.11
--- Makefile.inc 27 Apr 2007 11:45:31 -0000 1.12
***************
*** 19,26 ****
--- 19,33 ----
INCLUDES = -Isrc -I$(TOPDIR)/src
+ GCC_VERSION := $(shell v=$$($(CC) -dumpversion); echo $${v//./ })
+
# add gcc warnings and optimizations if CFLAGS not set
ifndef CFLAGS
CFLAGS += -Wall
+ # gcc-3.3.5 on Debian sarge doesn't know the following warnings
+ ifneq ("$(GCC_VERSION)","3 3 5")
CFLAGS += -Wextra
+ CFLAGS += -Wold-style-definition
+ CFLAGS += -Wdeclaration-after-statement
+ endif
CFLAGS += -Wmissing-prototypes
CFLAGS += -Wstrict-prototypes
***************
*** 28,32 ****
CFLAGS += -Wsign-compare
CFLAGS += -Waggregate-return
- CFLAGS += -Wold-style-definition
CFLAGS += -Wmissing-noreturn
CFLAGS += -Wmissing-format-attribute
--- 35,38 ----
More information about the Olsr-cvs
mailing list