COMP: suppress warning about deprecated register keyword (Flex)

This commit is contained in:
Mark Olesen
2018-01-29 09:13:28 +01:00
parent ba92e75215
commit e13f8a38a9
6 changed files with 22 additions and 5 deletions

View File

@ -48,8 +48,6 @@ Description
#include "scalar.H"
#include "StringStream.H"
using namespace Foam;
#include "argList.H"
#include "Time.H"
#include "polyMesh.H"
@ -59,6 +57,11 @@ using namespace Foam;
#include "SLList.H"
#include "SLPtrList.H"
// Flex may use register, which is deprecated and incompatible with C++17
#pragma GCC diagnostic ignored "-Wdeprecated-register"
using namespace Foam;
SLList<point> slPoints;
SLList<label> slPointMap;
label maxNodei = 0;

View File

@ -52,6 +52,9 @@ Description
#include "IFstream.H"
#include "readHexLabel.H"
// Flex may use register, which is deprecated and incompatible with C++17
#pragma GCC diagnostic ignored "-Wdeprecated-register"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
using namespace Foam;

View File

@ -58,6 +58,8 @@ Description
#include "cellShapeRecognition.H"
#include "repatchPolyTopoChanger.H"
// Flex may use register, which is deprecated and incompatible with C++17
#pragma GCC diagnostic ignored "-Wdeprecated-register"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -65,9 +67,6 @@ using namespace Foam;
const scalar convertToMeters = 1.0;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
label dimensionOfGrid = 0;
label nPoints = 0;

View File

@ -46,6 +46,9 @@ Description
// For EOF only
#include <cstdio>
// Flex may use register, which is deprecated and incompatible with C++17
#pragma GCC diagnostic ignored "-Wdeprecated-register"
using namespace Foam;
#include "argList.H"

View File

@ -26,6 +26,7 @@ License
%option prefix="yySTL"
%option yyclass="yySTLFlexLexer"
%{
/* ------------------------------------------------------------------------ *\
@ -35,6 +36,9 @@ License
#include "STLReader.H"
#include "OSspecific.H"
// Flex may use register, which is deprecated and incompatible with C++17
#pragma GCC diagnostic ignored "-Wdeprecated-register"
using namespace Foam;
// Dummy yyFlexLexer::yylex() to keep the linker happy. It is not called
//! \cond dummy

View File

@ -34,6 +34,11 @@ License
// For EOF only
#include <cstdio>
// Flex may use register, which is deprecated and incompatible with C++17
#pragma GCC diagnostic ignored "-Wdeprecated-register"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// flex input buffer size
int Foam::chemkinReader::yyBufSize = YY_BUF_SIZE;