View | Details | Raw Unified | Return to bug 225006
Collapse All | Expand All

(-)b/graphics/libgltf/files/patch-src_Shaders.cpp (+19 lines)
Added Link Here
1
Shaders.cpp:178:13: error: non-constant-expression cannot be narrowed from type 'size_t' (aka 'unsigned int') to 'GLint' (aka 'int') in initializer list [-Wc++11-narrowing]
2
            strlen("#version 130\n"),
3
            ^~~~~~~~~~~~~~~~~~~~~~~~
4
Shaders.cpp:178:13: note: insert an explicit cast to silence this issue
5
            strlen("#version 130\n"),
6
            ^~~~~~~~~~~~~~~~~~~~~~~~
7
            static_cast<GLint>(     )
8
9
--- src/Shaders.cpp.orig	2014-10-01 18:31:43 UTC
10
+++ src/Shaders.cpp
11
@@ -175,7 +175,7 @@ bool ShaderProgram::compileShader(const char* pShader,
12
         };
13
 
14
         const GLint aSizes[] = {
15
-            strlen("#version 130\n"),
16
+            static_cast<GLint>(strlen("#version 130\n")),
17
             iGLSize,
18
         };
19
 

Return to bug 225006