Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-02-02 19:13:41 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-02-02 20:09:01 +0300
commitddba5c27a754a7cd419d2f1d1b71871269b41f86 (patch)
treecd426a940dc82639af7044bbe71df26caccc5132 /intern/cycles/kernel/kernel_compat_cpu.h
parent23e3dbb726beb5d551cda3d59833ab10474d5f63 (diff)
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.
Diffstat (limited to 'intern/cycles/kernel/kernel_compat_cpu.h')
-rw-r--r--intern/cycles/kernel/kernel_compat_cpu.h7
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"