force strict ISO C++ (-Wpedantic)

for Drawing, Image, Inspection, Mesh, MeshPart, Part, Path, Points, Raytracing, ReverseEngineering, Spreadsheet, Start, Surface, Web

TODO: fix several -Woverflow in area
This commit is contained in:
wmayer
2019-09-18 11:32:42 +02:00
parent f29a9c0de3
commit e48c52c480
51 changed files with 216 additions and 211 deletions

View File

@@ -39,6 +39,9 @@
#if defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Woverloaded-virtual"
#elif defined (__GNUC__)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wpedantic"
#endif
#include <SMESH_Gen.hxx>
@@ -70,6 +73,8 @@
#endif // HAVE_NETGEN
#if defined(__clang__)
# pragma clang diagnostic pop
#elif defined (__GNUC__)
# pragma GCC diagnostic pop
#endif
#endif // HAVE_SMESH