From 93a87ff9a33b0541139c327e70748ffa19cbc9dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 17 Aug 2014 21:26:59 -0700 Subject: [PATCH] STFU glsl-optimizer warnings. --- 3rdparty/glsl-optimizer/include/c99_compat.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/3rdparty/glsl-optimizer/include/c99_compat.h b/3rdparty/glsl-optimizer/include/c99_compat.h index 429c60148..66ee1eba9 100644 --- a/3rdparty/glsl-optimizer/include/c99_compat.h +++ b/3rdparty/glsl-optimizer/include/c99_compat.h @@ -33,6 +33,15 @@ * MSVC hacks. */ #if defined(_MSC_VER) + +// BK - STFU! +# pragma warning(disable:4244) // warning C4244: 'function' : conversion from 'intmax_t' to 'int', possible loss of data +# pragma warning(disable:4267) // warning C4267: '=' : conversion from 'size_t' to 'unsigned int', possible loss of data +# pragma warning(disable:4351) // warning C4351: new behavior: elements of array '`anonymous-namespace'::per_vertex_accumulator::fields' will be default initialized +# pragma warning(disable:4345) // warning C4345: behavior change: an object of POD type constructed with an initializer of the form () will be default-initialized +# pragma warning(disable:4715) // warning C4715: 'write_mask_to_swizzle' : not all control paths return a value +# pragma warning(disable:4800) // warning C4800: 'unsigned int' : forcing value to bool 'true' or 'false' (performance warning) + /* * Visual Studio 2012 will complain if we define the `inline` keyword, but * actually it only supports the keyword on C++.