diff options
Diffstat (limited to 'intern/cycles/kernel/kernel_compat_cpu.h')
-rw-r--r-- | intern/cycles/kernel/kernel_compat_cpu.h | 7 |
1 files changed, 7 insertions, 0 deletions
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" |