1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0023934: Compiler warnings in MS VC++ 10

Elimination of compiler warnings
- ExprIntrp: generated file ExprIntrp.tab.c and related WOK scripts removed from the sources
- ExprIntrp, StepFile: added missing declarations and casts; warnings caused by Flex and Bison code suppressed for MSVC compuler by #pragma
- OSD: dummy #includes added to files containing no code for Windows, to avoid warning on empty file
- PLib: piece of code contained in PLib_ChangeDim.gxx included explicitly in cxx and cleaned
- Other places: some casts added to avoid warnings
This commit is contained in:
abv
2013-09-18 09:13:42 +04:00
parent 498ce76bde
commit 105aae761e
39 changed files with 264 additions and 1600 deletions

View File

@@ -22,6 +22,7 @@
%option yywrap
%{
#include <ExprIntrp.tab.h>
#define YY_SKIP_YYWRAP
static YY_BUFFER_STATE ExprIntrp_bufstring;
@@ -29,6 +30,8 @@ static YY_BUFFER_STATE ExprIntrp_bufstring;
void ExprIntrp_SetResult();
void ExprIntrp_SetDegree();
int ExprIntrlex (void);
void ExprIntrp_start_string(char* str)
{
ExprIntrp_bufstring = ExprIntrp_scan_string(str);
@@ -45,6 +48,11 @@ int yywrap()
return 1;
}
// disable MSVC warnings in flex code
#ifdef _MSC_VER
#pragma warning(disable:4131 4244 4273 4127)
#endif
%}
%%
" " {;}