Disable maybe-uninitialized warning
authorRoland Schulz <roland@utk.edu>
Thu, 19 Jun 2014 01:59:46 +0000 (21:59 -0400)
committerRoland Schulz <roland@utk.edu>
Thu, 19 Jun 2014 02:10:04 +0000 (22:10 -0400)
Causes false positives with old gmx_fatal. Don't merge
into master branch.

Change-Id: I48e9d7798bbf1990cfeb79efaeabc354ab469746

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"