Merge branch 'origin/release-2021' into merge-2021-into-master
[alexxy/gromacs.git] / api / nblib / CMakeLists.txt
index c62efde351f7a22f819c71db4dd443fa2a52c9a0..99fcfae3d5126ff8b58c1a386c4f6c8f805c7503 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)