Remove some extraneous compiler flags from nblib
authorJoe Jordan <ejjordan12@gmail.com>
Tue, 17 Nov 2020 13:53:46 +0000 (13:53 +0000)
committerPaul Bauer <paul.bauer.q@gmail.com>
Tue, 17 Nov 2020 13:53:46 +0000 (13:53 +0000)
Closes #3798

api/nblib/CMakeLists.txt

index 250b88da5069a46e5af28f5d4bd9632860e5862e..a87af6108132e1cb9643c300a32093ffc5e842d7 100644 (file)
@@ -47,31 +47,20 @@ set(IGNORED_CLANG_ALL_WARNINGS
         "-Wno-covered-switch-default" #GCC gives maybe-uninitialized without default label and checks for illegal enum values.
         "-Wno-switch-enum" # default statement for enum is OK
 
-        # We need to use macros like
-        # GMX_CATCH_ALL_AND_EXIT_WITH_FATAL_ERROR. Those will look strange
-        # if they don't have a semicolon after them, and might confuse
-        # tools like IDEs also.
-        "-Wno-extra-semi-stmt"
-
-        #Following ones are undecided/TODO
-        "-Wno-disabled-macro-expansion"
-        "-Wno-cast-align"
-        "-Wno-reserved-id-macro"
-        "-Wno-global-constructors"
+        # These are all needed, mostly for testing code
+        "-Wno-conversion"
+        "-Wno-documentation"
+        "-Wno-double-promotion"
         "-Wno-exit-time-destructors"
+        "-Wno-float-equal"
+        "-Wno-global-constructors"
+        "-Wno-padded"
+        "-Wno-reserved-id-macro"
+        "-Wno-shadow"
         "-Wno-unused-macros"
         "-Wno-weak-vtables"
-        "-Wno-conditional-uninitialized"
-        "-Wno-format-nonliteral"
-        "-Wno-shadow"
-        "-Wno-cast-qual"
-        "-Wno-documentation"
-        "-Wno-used-but-marked-unused"
-        "-Wno-padded"
-        "-Wno-float-equal"
-        "-Wno-old-style-cast"
-        "-Wno-conversion"
-        "-Wno-double-promotion")
+        )
+
 string(REPLACE " " ";" IGNORED_CLANG_ALL_WARNINGS "${IGNORED_CLANG_ALL_WARNINGS}")
 
 set(TESTUTILS_DIR ${PROJECT_SOURCE_DIR}/src/testutils)