mesa: annotate AttribFuncsARB[] as const
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 25 Aug 2016 15:59:01 +0000 (16:59 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 6 Oct 2016 14:03:46 +0000 (15:03 +0100)
It's read-only data, so annotate it accordingly.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/mesa/main/api_arrayelt.c

index c84db5f97f6eb3fb41748194364f81e108317be4..15fbb8c9baeb551050e488b28b216555161b3def 100644 (file)
@@ -1288,7 +1288,7 @@ VertexAttribL4dv(GLuint index, const GLdouble *v)
  * Array [unnormalized/normalized/integer][size][type] of VertexAttrib
  * functions
  */
-static attrib_func AttribFuncsARB[4][4][NUM_TYPES] = {
+static const attrib_func AttribFuncsARB[4][4][NUM_TYPES] = {
    {
       /* non-normalized */
       {