[Bf-blender-cvs] [e224b5b] master: Cycles: OSL kernel now also ignores maybe-uninitialized

Sergey Sharybin noreply at git.blender.org
Mon Feb 2 18:17:07 CET 2015


Commit: e224b5b9cab9255ddf634e967556379df4111be0
Author: Sergey Sharybin
Date:   Mon Feb 2 22:15:33 2015 +0500
Branches: master
https://developer.blender.org/rBe224b5b9cab9255ddf634e967556379df4111be0

Cycles: OSL kernel now also ignores maybe-uninitialized

This is a bit of a mess because of the header dependency hell, but
since the tweak is small enough it's gonna be fine.

===================================================================

M	intern/cycles/kernel/osl/osl_services.cpp

===================================================================

diff --git a/intern/cycles/kernel/osl/osl_services.cpp b/intern/cycles/kernel/osl/osl_services.cpp
index 73c21fb..1f6015d 100644
--- a/intern/cycles/kernel/osl/osl_services.cpp
+++ b/intern/cycles/kernel/osl/osl_services.cpp
@@ -14,6 +14,14 @@
  * limitations under the License.
  */
 
+/* TODO(sergey): There is a bit of headers dependency hell going on
+ * here, so for now we just put here. In the future it might be better
+ * to have dedicated file for such tweaks.
+ */
+#if defined(__GNUC__) && defined(NDEBUG)
+#  pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
+#endif
+
 #include <string.h>
 
 #include "mesh.h"




More information about the Bf-blender-cvs mailing list