summaryrefslogtreecommitdiffstats
path: root/hw/display/vga.c
diff options
context:
space:
mode:
authorStefan Weil2015-02-06 22:43:16 +0100
committerMichael Tokarev2015-02-10 08:26:05 +0100
commit73d22cafcaea7cb7b5f3ebbff2df5458d3f3c570 (patch)
treeead94f6e3b2d48441e957912ffd386f4198e770a /hw/display/vga.c
parentstubs: Fix warning caused by missing include statement (diff)
downloadqemu-73d22cafcaea7cb7b5f3ebbff2df5458d3f3c570.tar.gz
qemu-73d22cafcaea7cb7b5f3ebbff2df5458d3f3c570.tar.xz
qemu-73d22cafcaea7cb7b5f3ebbff2df5458d3f3c570.zip
vga: Fix warning caused by missing 'static' attribute
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 <sw@weilnetz.de> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/display/vga.c')
-rw-r--r--hw/display/vga.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/display/vga.c b/hw/display/vga.c
index ffcfce38a4..9c62fbf488 100644
--- a/hw/display/vga.c
+++ b/hw/display/vga.c
@@ -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,