[Monetdb-developers] [Monetdb-pf-checkins] pathfinder/modules/pftijah/tjc tjc_scan.l, , 1.2, 1.3

Stefan Manegold Stefan.Manegold at cwi.nl
Thu Nov 27 13:04:37 CET 2008


On Thu, Nov 27, 2008 at 11:03:29AM +0000, Jan Flokstra wrote:
> Update of /cvsroot/monetdb/pathfinder/modules/pftijah/tjc
> In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv3513
> 
> Modified Files:
> 	tjc_scan.l 
> Log Message:
> - defining an empty ECHO should solve the fwrite() problem I think. I copied
>   this solution which first did not make any sense from nexi.l.

Works. Thanks.

Alternative (in case ECHO was used) would have been to disable the strict
checks for (flex-/bison-) generated code, e.g., via
========
Index: buildtools/conf/MonetDB.m4
===================================================================
RCS file: /cvsroot/monetdb/buildtools/conf/MonetDB.m4,v
retrieving revision 1.99
diff -u -r1.99 MonetDB.m4
--- buildtools/conf/MonetDB.m4  27 Nov 2008 08:04:34 -0000      1.99
+++ buildtools/conf/MonetDB.m4  27 Nov 2008 11:46:09 -0000
@@ -758,7 +758,7 @@
        dnl  locally as possible via "-Wno-undef"
        dnl  (see also MonetDB4/src/monet/Makefile.ag, sql/src/server/Makefile.ag,
        dnl   pathfinder/modules/pftijah/Makefile.ag).
-       GCC_BISON_CFLAGS="$GCC_BISON_CFLAGS -Wno-undef"
+       GCC_BISON_CFLAGS="$GCC_BISON_CFLAGS -Wno-undef -Wp,-U_FORTIFY_SOURCE"
        dnl  Likewise, at least with gcc 4.3.0 and flex 2.5.33 and bison 2.3 on Gentoo 1.12.11.1,
        dnl  gcc complains about some bison/flex-generated code that defines an unused static function:
        dnl  "warning: 'input' defined but not used".
========

Stefan

> 
> 
> U tjc_scan.l
> Index: tjc_scan.l
> ===================================================================
> RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/tjc/tjc_scan.l,v
> retrieving revision 1.2
> retrieving revision 1.3
> diff -u -d -r1.2 -r1.3
> --- tjc_scan.l	27 Nov 2008 10:53:17 -0000	1.2
> +++ tjc_scan.l	27 Nov 2008 11:03:26 -0000	1.3
> @@ -49,6 +49,8 @@
>  		YY_FATAL_ERROR( "input in tijah flex scanner failed" );
>  #endif
>  
> +#define ECHO	/* empty -- don't echo anything (we shouldn't get there anyway */
> +
>  static void
>  gotoState (int s)
>  {
> 
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Monetdb-pf-checkins mailing list
> Monetdb-pf-checkins at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

-- 
| Dr. Stefan Manegold | mailto:Stefan.Manegold at cwi.nl |
| CWI,  P.O.Box 94079 | http://www.cwi.nl/~manegold/  |
| 1090 GB Amsterdam   | Tel.: +31 (20) 592-4212       |
| The Netherlands     | Fax : +31 (20) 592-4312       |




More information about the developers-list mailing list