mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
COMP: add -fpermissive to c++LESSWARN flags (closes #744)
- downgrades some diagnostics about nonconformant code from errors to warnings. Oddly enough, the errors actually arise from STL library elements shipped with gcc itself. Affects kahip compilation with gcc-6, gcc-7
This commit is contained in:
@ -3,8 +3,10 @@ SUFFIXES += .C .cc .cpp .cxx
|
||||
c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter \
|
||||
-Wno-invalid-offsetof -Wno-attributes
|
||||
|
||||
# Suppress some warnings for flex++ and CGAL
|
||||
c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds
|
||||
# Suppress some warnings (flex++, CGAL, etc)
|
||||
c++LESSWARN = \
|
||||
-Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds \
|
||||
-fpermissive
|
||||
|
||||
CC = g++ -std=c++11 -m64 -mcpu=power5+
|
||||
|
||||
|
||||
Reference in New Issue
Block a user