Skip to content
Snippets Groups Projects
Commit a64ea758 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Add missing includes for compilation with clang-14 and g++-12

parent ee3b3916
Branches
Tags
No related merge requests found
...@@ -11,3 +11,10 @@ add_library( ...@@ -11,3 +11,10 @@ add_library(
TensorialGaussLobattoQuadrature.cpp TensorialGaussLobattoQuadrature.cpp
TetrahedronGaussQuadrature.cpp TetrahedronGaussQuadrature.cpp
TriangleGaussQuadrature.cpp) TriangleGaussQuadrature.cpp)
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if((CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "12.0.0") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "13.0.0"))
# Deactivated since it produces false positive warning in this file only ...
set_source_files_properties(PyramidGaussQuadrature.cpp PROPERTIES COMPILE_FLAGS "-Wno-array-bounds")
endif()
endif()
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include <utils/Exceptions.hpp> #include <utils/Exceptions.hpp>
#include <functional>
#include <sstream> #include <sstream>
class IBuiltinFunctionEmbedder; class IBuiltinFunctionEmbedder;
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#include <utils/PugsAssert.hpp> #include <utils/PugsAssert.hpp>
#include <array>
#include <limits> #include <limits>
#include <memory> #include <memory>
#include <string> #include <string>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment