CONP: suppress register warnings for clang only

This commit is contained in:
Mark Olesen 2018-01-30 06:49:32 +01:00
parent e13f8a38a9
commit 1b9aec2a3d
15 changed files with 24 additions and 15 deletions

View File

@ -58,7 +58,7 @@ Description
#include "SLPtrList.H"
// Flex may use register, which is deprecated and incompatible with C++17
#pragma GCC diagnostic ignored "-Wdeprecated-register"
#pragma clang diagnostic ignored "-Wdeprecated-register"
using namespace Foam;

View File

@ -53,7 +53,7 @@ Description
#include "readHexLabel.H"
// Flex may use register, which is deprecated and incompatible with C++17
#pragma GCC diagnostic ignored "-Wdeprecated-register"
#pragma clang diagnostic ignored "-Wdeprecated-register"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -59,7 +59,7 @@ Description
#include "repatchPolyTopoChanger.H"
// Flex may use register, which is deprecated and incompatible with C++17
#pragma GCC diagnostic ignored "-Wdeprecated-register"
#pragma clang diagnostic ignored "-Wdeprecated-register"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -47,7 +47,7 @@ Description
#include <cstdio>
// Flex may use register, which is deprecated and incompatible with C++17
#pragma GCC diagnostic ignored "-Wdeprecated-register"
#pragma clang diagnostic ignored "-Wdeprecated-register"
using namespace Foam;

View File

@ -37,7 +37,7 @@ License
#include "OSspecific.H"
// Flex may use register, which is deprecated and incompatible with C++17
#pragma GCC diagnostic ignored "-Wdeprecated-register"
#pragma clang diagnostic ignored "-Wdeprecated-register"
using namespace Foam;
// Dummy yyFlexLexer::yylex() to keep the linker happy. It is not called

View File

@ -35,7 +35,7 @@ License
#include <cstdio>
// Flex may use register, which is deprecated and incompatible with C++17
#pragma GCC diagnostic ignored "-Wdeprecated-register"
#pragma clang diagnostic ignored "-Wdeprecated-register"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -1,7 +1,8 @@
SUFFIXES += .C .cc .cpp .cxx
c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter \
-Wno-invalid-offsetof -Wno-attributes
-Wno-invalid-offsetof -Wno-attributes \
-Wno-unknown-pragmas
# Suppress some warnings for flex++ and CGAL
c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds

View File

@ -1,7 +1,8 @@
SUFFIXES += .C .cc .cpp .cxx
c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter \
-Wno-invalid-offsetof -Wno-attributes
-Wno-invalid-offsetof -Wno-attributes \
-Wno-unknown-pragmas
# Suppress some warnings for flex++ and CGAL
c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds

View File

@ -1,7 +1,8 @@
SUFFIXES += .C .cc .cpp .cxx
c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter \
-Wno-invalid-offsetof -Wno-attributes
-Wno-invalid-offsetof -Wno-attributes \
-Wno-unknown-pragmas
# Suppress some warnings for flex++ and CGAL
c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds

View File

@ -1,7 +1,8 @@
SUFFIXES += .C .cc .cpp .cxx
c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter \
-Wno-invalid-offsetof -Wno-attributes
-Wno-invalid-offsetof -Wno-attributes \
-Wno-unknown-pragmas
# Suppress some warnings for flex++ and CGAL
c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds

View File

@ -1,7 +1,8 @@
SUFFIXES += .C .cc .cpp .cxx
c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter \
-Wno-invalid-offsetof -Wno-attributes
-Wno-invalid-offsetof -Wno-attributes \
-Wno-unknown-pragmas
# Suppress some warnings for flex++ and CGAL
c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds

View File

@ -1,7 +1,8 @@
SUFFIXES += .C .cc .cpp .cxx
c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter \
-Wno-invalid-offsetof -Wno-attributes
-Wno-invalid-offsetof -Wno-attributes \
-Wno-unknown-pragmas
# Suppress some warnings for flex++ and CGAL
c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds

View File

@ -1,7 +1,8 @@
SUFFIXES += .C .cc .cpp .cxx
c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter \
-Wno-invalid-offsetof -Wno-attributes
-Wno-invalid-offsetof -Wno-attributes \
-Wno-unknown-pragmas
# Suppress some warnings for flex++ and CGAL
c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds

View File

@ -1,7 +1,8 @@
SUFFIXES += .C .cc .cpp .cxx
c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter \
-Wno-invalid-offsetof -Wno-attributes
-Wno-invalid-offsetof -Wno-attributes \
-Wno-unknown-pragmas
# Suppress some warnings for flex++ and CGAL
c++LESSWARN =

View File

@ -1,7 +1,8 @@
SUFFIXES += .C .cc .cpp .cxx
c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter \
-Wno-invalid-offsetof -Wno-attributes
-Wno-invalid-offsetof -Wno-attributes \
-Wno-unknown-pragmas
# Suppress some warnings for flex++ and CGAL
c++LESSWARN =