nv50: Silence missing initializer warning.
authorVinson Lee <vlee@vmware.com>
Sat, 18 Sep 2010 22:59:00 +0000 (15:59 -0700)
committerVinson Lee <vlee@vmware.com>
Sat, 18 Sep 2010 22:59:00 +0000 (15:59 -0700)
Fixes this GCC warning.
nv50_state_validate.c:336: warning: missing initializer
nv50_state_validate.c:336: error: (near initialization for 'validate_list[20].func')

src/gallium/drivers/nv50/nv50_state_validate.c

index f1d8202dffabb9791f77cb2c57339c6b4adf2bf9..16c2dab9af658d8f1f40c16f12582f6045a7c8fa 100644 (file)
@@ -333,7 +333,7 @@ struct state_validate {
        { validate_vtxbuf         , NV50_NEW_ARRAYS                           },
        { validate_vtxattr        , NV50_NEW_ARRAYS                           },
        { validate_clip           , NV50_NEW_CLIP                             },
-       {}
+       { NULL                    , 0                                         }
 };
 #define validate_list_len (sizeof(validate_list) / sizeof(validate_list[0]))