Commit e20aeedc authored by Jö Fahlke's avatar Jö Fahlke

Silence clang 3.8 warning about missing braces.

This adjusts the clang 3.8 toolchains to include -Wno-missing-braces in their
flags.

Clang includes -Wmissing-braces in -Wall.  This has the annoying effect of
requiring two pairs of braces when aggregate-initializing e.g. an std::array,
see https://gitlab.dune-project.org/core/dune-common/-/jobs/79786 for an
example.  Gcc did removed -Wmissing-braces from -Wall precisely for this
reason a long time ago.  Clang 6 went a different route and refined the
warning to not trigger in cases such as std::array, see
https://bugs.llvm.org/show_bug.cgi?id=21629.
parent 7439409d
......@@ -4,7 +4,7 @@ FC=gfortran-6
CFLAGS="-Wall -fdiagnostics-color=always"
FFLAGS="-Wall -fdiagnostics-color=always"
CXXFLAGS="-Wall -fdiagnostics-color=always -std=c++14"
CXXFLAGS="-Wall -Wno-missing-braces -fdiagnostics-color=always -std=c++14"
REL_CFLAGS="-O3 -g -UNDEBUG"
REL_CXXFLAGS="-O3 -g -UNDEBUG"
......
......@@ -4,7 +4,7 @@ FC=gfortran-6
CFLAGS="-Wall -fdiagnostics-color=always"
FFLAGS="-Wall -fdiagnostics-color=always"
CXXFLAGS="-Wall -fdiagnostics-color=always -std=c++14"
CXXFLAGS="-Wall -Wno-missing-braces -fdiagnostics-color=always -std=c++14"
REL_CFLAGS="-O3 -g -DNDEBUG"
REL_CXXFLAGS="-O3 -g -DNDEBUG"
......
......@@ -4,7 +4,7 @@ FC=gfortran-6
CFLAGS="-Wall -fdiagnostics-color=always"
FFLAGS="-Wall -fdiagnostics-color=always"
CXXFLAGS="-Wall -fdiagnostics-color=always -std=c++14"
CXXFLAGS="-Wall -Wno-missing-braces -fdiagnostics-color=always -std=c++14"
REL_CFLAGS="-O3 -g -UNDEBUG"
REL_CXXFLAGS="-O3 -g -UNDEBUG"
......
Markdown is supported
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