From 4d81a3ccdf31a611f13b96d63fd55be81a1efe12 Mon Sep 17 00:00:00 2001 From: Roland Schulz Date: Wed, 18 Jun 2014 21:59:46 -0400 Subject: [PATCH] Disable maybe-uninitialized warning Causes false positives with old gmx_fatal. Don't merge into master branch. Change-Id: I48e9d7798bbf1990cfeb79efaeabc354ab469746 --- cmake/gmxCFlags.cmake | 2 ++ 1 file changed, 2 insertions(+) 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" -- 2.22.0