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.
This commit is contained in:
Sergey Sharybin 2015-02-02 22:15:33 +05:00
parent 432e478f43
commit e224b5b9ca

@ -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"