mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
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
This commit is contained in:
parent
465d1a2c7e
commit
61043d3fe7
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
/* Copyright (c) 1997-1999 Matra Datavision
|
|
||||||
|
Copyright (c) 1997-1999 Matra Datavision
|
||||||
Copyright (c) 1999-2012 OPEN CASCADE SAS
|
Copyright (c) 1999-2012 OPEN CASCADE SAS
|
||||||
|
|
||||||
The content of this file is subject to the Open CASCADE Technology Public
|
The content of this file is subject to the Open CASCADE Technology Public
|
||||||
@ -48,11 +49,23 @@ int yywrap()
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// disable MSVC warnings in flex code
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
// add includes for flex 2.91 (Linux version)
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <io.h>
|
||||||
|
|
||||||
|
// disable MSVC warnings in flex 2.89 code
|
||||||
#pragma warning(disable:4131 4244 4273 4127)
|
#pragma warning(disable:4131 4244 4273 4127)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
// add includes for flex 2.91 (Linux version)
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
// disable GCC warnings in flex 2.91 code
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||||
|
#endif
|
||||||
|
|
||||||
%}
|
%}
|
||||||
%%
|
%%
|
||||||
" " {;}
|
" " {;}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user