Cycles: Ignore -Wmaybe-uninitialized from the kernel in release builds

This warning provided too much false-positive issues in release version of the
kernel, making it really easy to miss actual warnings.
This commit is contained in:
Sergey Sharybin 2015-02-02 21:13:41 +05:00
parent 23e3dbb726
commit ddba5c27a7
7 changed files with 13 additions and 6 deletions

@ -16,8 +16,8 @@
/* CPU kernel entry points */
#include "kernel.h"
#include "kernel_compat_cpu.h"
#include "kernel.h"
#include "kernel_math.h"
#include "kernel_types.h"
#include "kernel_globals.h"

@ -31,8 +31,8 @@
#ifdef WITH_CYCLES_OPTIMIZED_KERNEL_AVX
#include "kernel.h"
#include "kernel_compat_cpu.h"
#include "kernel.h"
#include "kernel_math.h"
#include "kernel_types.h"
#include "kernel_globals.h"

@ -32,8 +32,8 @@
#ifdef WITH_CYCLES_OPTIMIZED_KERNEL_AVX2
#include "kernel.h"
#include "kernel_compat_cpu.h"
#include "kernel.h"
#include "kernel_math.h"
#include "kernel_types.h"
#include "kernel_globals.h"

@ -19,6 +19,13 @@
#define __KERNEL_CPU__
/* Release kernel has too much false-positive maybe-uninitialzied warnings,
* which makes it possible to miss actual warnings.
*/
#if defined(__GNUC__) && defined(NDEBUG)
# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
#include "util_debug.h"
#include "util_math.h"
#include "util_simd.h"

@ -27,8 +27,8 @@
#ifdef WITH_CYCLES_OPTIMIZED_KERNEL_SSE2
#include "kernel.h"
#include "kernel_compat_cpu.h"
#include "kernel.h"
#include "kernel_math.h"
#include "kernel_types.h"
#include "kernel_globals.h"

@ -29,8 +29,8 @@
#ifdef WITH_CYCLES_OPTIMIZED_KERNEL_SSE3
#include "kernel.h"
#include "kernel_compat_cpu.h"
#include "kernel.h"
#include "kernel_math.h"
#include "kernel_types.h"
#include "kernel_globals.h"

@ -30,8 +30,8 @@
#ifdef WITH_CYCLES_OPTIMIZED_KERNEL_SSE41
#include "kernel.h"
#include "kernel_compat_cpu.h"
#include "kernel.h"
#include "kernel_math.h"
#include "kernel_types.h"
#include "kernel_globals.h"