glsl/linker: Silence unused parameter warning
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 19 May 2016 19:06:55 +0000 (12:06 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 24 May 2016 18:04:05 +0000 (11:04 -0700)
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@intel.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
src/compiler/glsl/link_uniforms.cpp

index 92f1095849069ac24aadda3ccab8888b4f1b8bd4..ff2989f8cff7c15a0c545cf5ba0300da64282e2e 100644 (file)
@@ -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 */)
    {