Преглед на файлове

STFU glsl-optimizer warnings.

Branimir Karadžić преди 11 години
родител
ревизия
93a87ff9a3
променени са 1 файла, в които са добавени 9 реда и са изтрити 0 реда
  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.
  * MSVC hacks.
  */
  */
 #if defined(_MSC_VER)
 #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
     * Visual Studio 2012 will complain if we define the `inline` keyword, but
     * actually it only supports the keyword on C++.
     * actually it only supports the keyword on C++.