Disable maybe-uninitialized warning
[alexxy/gromacs.git] / cmake / gmxCFlags.cmake
index 955811745d650b366ee4babcc94624734f61045d..2b9b83d7a38df360459aacafe0cbc19c1a51e20b 100644 (file)
@@ -110,6 +110,8 @@ MACRO(gmx_c_flags)
         # Since 4.8 on by default. For previous version disabling is a no-op. Only disabling for Release because with assert
         # the warnings are OK.
         GMX_TEST_CFLAG(CFLAGS_WARN_REL "-Wno-array-bounds" GMXC_CFLAGS_RELEASE_ONLY)
+        # Since gcc 4.8 strict - false postives with old gmx_fatal. TODO: Remove in master
+        GMX_TEST_CFLAG(CFLAGS_WARN_UNINIT "-Wno-maybe-uninitialized" GMXC_CFLAGS)
         # new in gcc 4.5
         GMX_TEST_CFLAG(CFLAGS_EXCESS_PREC "-fexcess-precision=fast" GMXC_CFLAGS_RELEASE)
         GMX_TEST_CFLAG(CFLAGS_COPT "-fomit-frame-pointer -funroll-all-loops"