Skip to contentSkip to conversation

monitor: Add missing 'static' attribute

PATCH Applied Stefan Weil 2 participants 2 messages May 2, 2014 – May 3, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 monitor: Add missing 'static' attribute

This fixes a warning from the static code analysis (smatch).

---
 monitor.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
monitor.c +1 -1
index 1266ba0..2d3fb3f 100644
@@ -488,7 +488,7 @@ static const char *monitor_event_names[] = {
 };
 QEMU_BUILD_BUG_ON(ARRAY_SIZE(monitor_event_names) != QEVENT_MAX)
 
-MonitorEventState monitor_event_state[QEVENT_MAX];
+static MonitorEventState monitor_event_state[QEVENT_MAX];
 
 /*
  * Emits the event to every monitor instance
Signature · 1 line
1.7.10.4