[Bf-blender-cvs] [da0de13] temp_custom_loop_normals: Cycles: OSL kernel now also ignores maybe-uninitialized
Sergey Sharybin
noreply at git.blender.org
Mon Feb 2 20:22:55 CET 2015
Commit: da0de13420325b7633de77d6b16eba35b661efb3
Author: Sergey Sharybin
Date: Mon Feb 2 22:15:33 2015 +0500
Branches: temp_custom_loop_normals
https://developer.blender.org/rBda0de13420325b7633de77d6b16eba35b661efb3
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