Quellcode durchsuchen

STFU glsl-optimizer warnings.

Branimir Karadžić vor 11 Jahren
Ursprung
Commit
93a87ff9a3
1 geänderte Dateien mit 9 neuen und 0 gelöschten Zeilen
  1. 9 0
      3rdparty/glsl-optimizer/include/c99_compat.h

+ 9 - 0
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++.