From ddba5c27a754a7cd419d2f1d1b71871269b41f86 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 2 Feb 2015 21:13:41 +0500 Subject: 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. --- intern/cycles/kernel/kernel_compat_cpu.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'intern/cycles/kernel/kernel_compat_cpu.h') diff --git a/intern/cycles/kernel/kernel_compat_cpu.h b/intern/cycles/kernel/kernel_compat_cpu.h index 992d2876d6f..6b950e3eaf6 100644 --- a/intern/cycles/kernel/kernel_compat_cpu.h +++ b/intern/cycles/kernel/kernel_compat_cpu.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" -- cgit v1.2.3