From e224b5b9cab9255ddf634e967556379df4111be0 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 2 Feb 2015 22:15:33 +0500 Subject: 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. --- intern/cycles/kernel/osl/osl_services.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'intern/cycles') diff --git a/intern/cycles/kernel/osl/osl_services.cpp b/intern/cycles/kernel/osl/osl_services.cpp index 73c21fb1214..1f6015d0d6b 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 #include "mesh.h" -- cgit v1.2.3