Commit 1b9aec2a authored by Mark OLESEN's avatar Mark OLESEN
Browse files

CONP: suppress register warnings for clang only

parent e13f8a38
......@@ -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;
......
......@@ -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"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
......@@ -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"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
......@@ -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;
......
......@@ -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
......
......@@ -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"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
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
......
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
......
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
......
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
......
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
......
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
......
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
......
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 =
......
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 =
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment