[Mesa-dev] [PATCH 01/10] glsl/linker: Silence unused parameter warning

Ian Romanick idr at freedesktop.org
Fri May 20 07:25:56 UTC 2016


From: Ian Romanick <ian.d.romanick at intel.com>

The parameter is required for the interface.

glsl/link_uniforms.cpp:689:61: warning: unused parameter ‘record_type’ [-Wunused-parameter]
                             bool row_major, const glsl_type *record_type,
                                                             ^

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 src/compiler/glsl/link_uniforms.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compiler/glsl/link_uniforms.cpp b/src/compiler/glsl/link_uniforms.cpp
index 92f1095..ff2989f 100644
--- a/src/compiler/glsl/link_uniforms.cpp
+++ b/src/compiler/glsl/link_uniforms.cpp
@@ -686,7 +686,7 @@ private:
    }
 
    virtual void visit_field(const glsl_type *type, const char *name,
-                            bool row_major, const glsl_type *record_type,
+                            bool row_major, const glsl_type * /* record_type */,
                             const unsigned packing,
                             bool /* last_field */)
    {
-- 
2.5.5



More information about the mesa-dev mailing list