vrend: declare decode callback table as static

This silences a warning about non-static variable not being previously
declared.

v2: make table const (Chia-I Wu)

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
macos/master
Gert Wollny 4 years ago committed by Gert Wollny
parent 104fef05e6
commit 18b4bfc6f9
  1. 2
      src/vrend_decode.c

@ -1522,7 +1522,7 @@ static int vrend_decode_dummy(struct vrend_context *ctx, const uint32_t *buf, ui
return 0;
}
vrend_decode_callback decode_table[VIRGL_MAX_COMMANDS] = {
static const vrend_decode_callback decode_table[VIRGL_MAX_COMMANDS] = {
[VIRGL_CCMD_NOP] = vrend_decode_dummy,
[VIRGL_CCMD_CREATE_OBJECT] = vrend_decode_create_object,
[VIRGL_CCMD_BIND_OBJECT] = vrend_decode_bind_object,

Loading…
Cancel
Save