glsl: Silence unused parameter warnings
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 18 Nov 2015 00:58:02 +0000 (16:58 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 19 Nov 2015 02:35:56 +0000 (18:35 -0800)
builtin_functions.cpp:5289:52: warning: unused parameter 'num_arguments' [-Wunused-parameter]
                                           unsigned num_arguments,
                                                    ^
builtin_functions.cpp:5290:52: warning: unused parameter 'flags' [-Wunused-parameter]
                                           unsigned flags)
                                                    ^

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/glsl/builtin_functions.cpp

index 13494446b596d221c038c4747ac76cc78640ba37..eb438d9fd450e592d1d7be09d4e9dbac4321f4f1 100644 (file)
@@ -5243,8 +5243,8 @@ builtin_builder::_image_size_prototype(const glsl_type *image_type,
 
 ir_function_signature *
 builtin_builder::_image_samples_prototype(const glsl_type *image_type,
-                                          unsigned num_arguments,
-                                          unsigned flags)
+                                          unsigned /* num_arguments */,
+                                          unsigned /* flags */)
 {
    ir_variable *image = in_var(image_type, "image");
    ir_function_signature *sig =