Skip to content

Commit

Permalink
vga: Fix warning caused by missing 'static' attribute
Browse files Browse the repository at this point in the history
Warning from the Sparse static analysis tool:

hw/display/vga.c:2012:26: warning:
 symbol 'vmstate_vga_endian' was not declared. Should it be static?

Signed-off-by: Stefan Weil <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
  • Loading branch information
stweil authored and Michael Tokarev committed Feb 10, 2015
1 parent 2822c1b commit 73d22ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/display/vga.c
Original file line number Diff line number Diff line change
Expand Up @@ -2032,7 +2032,7 @@ static bool vga_endian_state_needed(void *opaque)
return s->default_endian_fb != s->big_endian_fb;
}

const VMStateDescription vmstate_vga_endian = {
static const VMStateDescription vmstate_vga_endian = {
.name = "vga.endian",
.version_id = 1,
.minimum_version_id = 1,
Expand Down

0 comments on commit 73d22ca

Please sign in to comment.