mesa: fix _mesa_add_state_reference() declaration mismatch
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 26 Apr 2021 06:39:06 +0000 (16:39 +1000)
committerMarge Bot <eric+marge@anholt.net>
Mon, 26 Apr 2021 13:48:11 +0000 (13:48 +0000)
Fixed gcc warnings.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10446>

src/mesa/program/prog_parameter.h

index 0457a0d..3ee5e34 100644 (file)
@@ -204,7 +204,7 @@ _mesa_add_sized_state_reference(struct gl_program_parameter_list *paramList,
 
 extern GLint
 _mesa_add_state_reference(struct gl_program_parameter_list *paramList,
-                          const gl_state_index16 stateTokens[]);
+                          const gl_state_index16 stateTokens[STATE_LENGTH]);
 
 
 static inline GLint