* [Qemu-trivial] [PATCH] monitor: Add missing 'static' attribute
@ 2014-05-02 20:43 ` Stefan Weil
0 siblings, 0 replies; 4+ messages in thread
From: Stefan Weil @ 2014-05-02 20:43 UTC (permalink / raw)
To: qemu-trivial; +Cc: Stefan Weil, qemu-devel, Luiz Capitulino
This fixes a warning from the static code analysis (smatch).
Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
monitor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/monitor.c b/monitor.c
index 1266ba0..2d3fb3f 100644
--- a/monitor.c
+++ b/monitor.c
@@ -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
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Qemu-devel] [PATCH] monitor: Add missing 'static' attribute
@ 2014-05-02 20:43 ` Stefan Weil
0 siblings, 0 replies; 4+ messages in thread
From: Stefan Weil @ 2014-05-02 20:43 UTC (permalink / raw)
To: qemu-trivial; +Cc: Stefan Weil, qemu-devel, Luiz Capitulino
This fixes a warning from the static code analysis (smatch).
Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
monitor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/monitor.c b/monitor.c
index 1266ba0..2d3fb3f 100644
--- a/monitor.c
+++ b/monitor.c
@@ -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
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Qemu-trivial] [PATCH] monitor: Add missing 'static' attribute
2014-05-02 20:43 ` [Qemu-devel] " Stefan Weil
@ 2014-05-03 9:05 ` Michael Tokarev
-1 siblings, 0 replies; 4+ messages in thread
From: Michael Tokarev @ 2014-05-03 9:05 UTC (permalink / raw)
To: Stefan Weil, qemu-trivial; +Cc: qemu-devel, Luiz Capitulino
Applied to -trivial, thanks!
/mjt
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [Qemu-trivial] [PATCH] monitor: Add missing 'static' attribute
@ 2014-05-03 9:05 ` Michael Tokarev
0 siblings, 0 replies; 4+ messages in thread
From: Michael Tokarev @ 2014-05-03 9:05 UTC (permalink / raw)
To: Stefan Weil, qemu-trivial; +Cc: qemu-devel, Luiz Capitulino
Applied to -trivial, thanks!
/mjt
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-05-03 9:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-02 20:43 [Qemu-trivial] [PATCH] monitor: Add missing 'static' attribute Stefan Weil
2014-05-02 20:43 ` [Qemu-devel] " Stefan Weil
2014-05-03 9:05 ` [Qemu-trivial] " Michael Tokarev
2014-05-03 9:05 ` [Qemu-devel] " Michael Tokarev
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.