From 69a8369541af52eee2dec8112daa93ba1c7dddea Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Fri, 13 Dec 2019 19:52:04 +0100 Subject: [PATCH] COMP: add note about gcc-9 and deprecated-copy --- doc/BuildIssues.md | 11 +++++++++++ wmake/rules/General/Gcc/c++ | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/BuildIssues.md b/doc/BuildIssues.md index 86865e52a4..9407f831d9 100644 --- a/doc/BuildIssues.md +++ b/doc/BuildIssues.md @@ -21,6 +21,17 @@ We thus currently do not build with ParaView-5.7. If building plugins or with Catalyst, please use the latest ParaView-5.6 version instead for now. Or simply use ParaView with the regular, builtin VTK readers. + +### Gcc-9 + +In the newest version, gcc will emit warnings that some compiler-generated +copy constructors and assignment operators are deprecated. +It is possible to suppress these with the `-Wno-deprecated-copy` flag +until such time that these occurances are changd in the OpenFOAM source code. +However, be aware that doing so may prevent CMake-based tool chains +from working properly. + + ### Windows cross-compilation The reacting Euler multiphase solvers currently do not build for diff --git a/wmake/rules/General/Gcc/c++ b/wmake/rules/General/Gcc/c++ index a3e85f8f33..15b7870a3e 100644 --- a/wmake/rules/General/Gcc/c++ +++ b/wmake/rules/General/Gcc/c++ @@ -13,7 +13,7 @@ ptFLAGS = -DNoRepository -ftemplate-depth-100 c++WARN = \ -Wall -Wextra -Wold-style-cast \ -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof \ - -Wno-attributes -Wno-unknown-pragmas -Wno-deprecated-copy + -Wno-attributes -Wno-unknown-pragmas c++LESSWARN = \ -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds \