mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: suppress warning about deprecated register keyword (Flex)
This commit is contained in:
@ -48,8 +48,6 @@ Description
|
|||||||
#include "scalar.H"
|
#include "scalar.H"
|
||||||
#include "StringStream.H"
|
#include "StringStream.H"
|
||||||
|
|
||||||
using namespace Foam;
|
|
||||||
|
|
||||||
#include "argList.H"
|
#include "argList.H"
|
||||||
#include "Time.H"
|
#include "Time.H"
|
||||||
#include "polyMesh.H"
|
#include "polyMesh.H"
|
||||||
@ -59,6 +57,11 @@ using namespace Foam;
|
|||||||
#include "SLList.H"
|
#include "SLList.H"
|
||||||
#include "SLPtrList.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<point> slPoints;
|
||||||
SLList<label> slPointMap;
|
SLList<label> slPointMap;
|
||||||
label maxNodei = 0;
|
label maxNodei = 0;
|
||||||
|
|||||||
@ -52,6 +52,9 @@ Description
|
|||||||
#include "IFstream.H"
|
#include "IFstream.H"
|
||||||
#include "readHexLabel.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;
|
using namespace Foam;
|
||||||
|
|||||||
@ -58,6 +58,8 @@ Description
|
|||||||
#include "cellShapeRecognition.H"
|
#include "cellShapeRecognition.H"
|
||||||
#include "repatchPolyTopoChanger.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;
|
const scalar convertToMeters = 1.0;
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
|
|
||||||
label dimensionOfGrid = 0;
|
label dimensionOfGrid = 0;
|
||||||
|
|
||||||
label nPoints = 0;
|
label nPoints = 0;
|
||||||
|
|||||||
@ -46,6 +46,9 @@ Description
|
|||||||
// For EOF only
|
// For EOF only
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
||||||
|
// Flex may use register, which is deprecated and incompatible with C++17
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-register"
|
||||||
|
|
||||||
using namespace Foam;
|
using namespace Foam;
|
||||||
|
|
||||||
#include "argList.H"
|
#include "argList.H"
|
||||||
|
|||||||
@ -26,6 +26,7 @@ License
|
|||||||
%option prefix="yySTL"
|
%option prefix="yySTL"
|
||||||
%option yyclass="yySTLFlexLexer"
|
%option yyclass="yySTLFlexLexer"
|
||||||
|
|
||||||
|
|
||||||
%{
|
%{
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------ *\
|
/* ------------------------------------------------------------------------ *\
|
||||||
@ -35,6 +36,9 @@ License
|
|||||||
#include "STLReader.H"
|
#include "STLReader.H"
|
||||||
#include "OSspecific.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;
|
using namespace Foam;
|
||||||
// Dummy yyFlexLexer::yylex() to keep the linker happy. It is not called
|
// Dummy yyFlexLexer::yylex() to keep the linker happy. It is not called
|
||||||
//! \cond dummy
|
//! \cond dummy
|
||||||
|
|||||||
@ -34,6 +34,11 @@ License
|
|||||||
// For EOF only
|
// For EOF only
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
||||||
|
// Flex may use register, which is deprecated and incompatible with C++17
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-register"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
// flex input buffer size
|
// flex input buffer size
|
||||||
int Foam::chemkinReader::yyBufSize = YY_BUF_SIZE;
|
int Foam::chemkinReader::yyBufSize = YY_BUF_SIZE;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user