From: abv Date: Sun, 20 Oct 2013 05:36:51 +0000 (+0400) Subject: 0024273: Eliminate compiler warnings in lex.ExprIntrp.tab.c generated by flex 2.91 X-Git-Tag: V6_7_0_beta~46 X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=commitdiff_plain;h=61043d3fe7486e6f884fa2ffbbe5bf00805e50d3;hp=465d1a2c7e108631d8ebd65280801722602b6c3d 0024273: Eliminate compiler warnings in lex.ExprIntrp.tab.c generated by flex 2.91 Added #include of missing headers; double opening of C comment fixed; some warnings suppressed --- diff --git a/src/ExprIntrp/ExprIntrp.lex b/src/ExprIntrp/ExprIntrp.lex index 47aa007f0c..c293e858c5 100755 --- a/src/ExprIntrp/ExprIntrp.lex +++ b/src/ExprIntrp/ExprIntrp.lex @@ -1,5 +1,6 @@ -/* -/* Copyright (c) 1997-1999 Matra Datavision +/* + + Copyright (c) 1997-1999 Matra Datavision Copyright (c) 1999-2012 OPEN CASCADE SAS The content of this file is subject to the Open CASCADE Technology Public @@ -48,11 +49,23 @@ int yywrap() return 1; } -// disable MSVC warnings in flex code #ifdef _MSC_VER +// add includes for flex 2.91 (Linux version) +#include +#include + +// disable MSVC warnings in flex 2.89 code #pragma warning(disable:4131 4244 4273 4127) #endif +#ifdef __GNUC__ +// add includes for flex 2.91 (Linux version) +#include + +// disable GCC warnings in flex 2.91 code +#pragma GCC diagnostic ignored "-Wunused-function" +#endif + %} %% " " {;}