[Olsr-cvs] olsrd-current/src/cfgparser Makefile,1.29,1.30

Bernd Petrovitsch (spam-protected)
Mon Sep 17 23:44:17 CEST 2007


Update of /cvsroot/olsrd/olsrd-current/src/cfgparser
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv5785/src/cfgparser

Modified Files:
	Makefile 
Log Message:
* removed -Wsign-compare for generated code
* fixed the #line directives


Index: Makefile
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/cfgparser/Makefile,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** Makefile	2 Aug 2007 19:59:15 -0000	1.29
--- Makefile	17 Sep 2007 21:44:15 -0000	1.30
***************
*** 96,106 ****
  			-e '/^static/s/input[\(][\)]/input(void)/' \
  			-e '/^static  *void  *yy_fatal_error/s/^\(.*)\);$$/\1 __attribute__((noreturn));/' \
  			< oscan.c-tmp >oscan.c
  		$(RM) oscan.c-tmp
  
  oparse.c:	oparse.y olsrd_conf.h Makefile
  		$(BISON) -d -o oparse.c oparse.y
  
! #oscan.o oparse.o:: CFLAGS := $(filter-out -Wunreachable-code, $(CFLAGS))
  
  .PHONY: install clean uberclean
--- 96,110 ----
  			-e '/^static/s/input[\(][\)]/input(void)/' \
  			-e '/^static  *void  *yy_fatal_error/s/^\(.*)\);$$/\1 __attribute__((noreturn));/' \
+ 			-e '/^#line/s/$(subst .,\.,$@-tmp)/$@/' \
  			< oscan.c-tmp >oscan.c
  		$(RM) oscan.c-tmp
  
+ oscan.o: CFLAGS := $(filter-out -Wunreachable-code -Wsign-compare, $(CFLAGS)) -Wno-sign-compare
+ 
  oparse.c:	oparse.y olsrd_conf.h Makefile
  		$(BISON) -d -o oparse.c oparse.y
  
! oparse.o: CFLAGS := $(filter-out -Wunreachable-code, $(CFLAGS))
! 
  
  .PHONY: install clean uberclean





More information about the Olsr-cvs mailing list