Skip to contentSkip to conversation

target-arm: Add missing 'static' attribute

PATCH Applied Stefan Weil 2 participants 2 messages Mar 16, 2014 – Mar 17, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target-arm: Add missing 'static' attribute

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

---
 target-arm/machine.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target-arm/machine.c +1 -1
index 8f9e7d4..7ced87a 100644
@@ -88,7 +88,7 @@ static bool m_needed(void *opaque)
     return arm_feature(env, ARM_FEATURE_M);
 }
 
-const VMStateDescription vmstate_m = {
+static const VMStateDescription vmstate_m = {
     .name = "cpu/m",
     .version_id = 1,
     .minimum_version_id = 1,
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 1 line · Stefan Weil

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

Thanks, applied to -trivial.

/mjt