From: Roland Schulz Date: Thu, 19 Jun 2014 01:59:46 +0000 (-0400) Subject: Disable maybe-uninitialized warning X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=4d81a3ccdf31a611f13b96d63fd55be81a1efe12;p=alexxy%2Fgromacs.git Disable maybe-uninitialized warning Causes false positives with old gmx_fatal. Don't merge into master branch. Change-Id: I48e9d7798bbf1990cfeb79efaeabc354ab469746 --- diff --git a/cmake/gmxCFlags.cmake b/cmake/gmxCFlags.cmake index 955811745d..2b9b83d7a3 100644 --- a/cmake/gmxCFlags.cmake +++ b/cmake/gmxCFlags.cmake @@ -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"