Re: [Qemu-devel] [PATCH] target-i386: Add missing 'static' and 'const' attributes

2014-03-17 Thread Paolo Bonzini
Il 16/03/2014 15:03, Stefan Weil ha scritto: This fixes warnings from the static code analysis (smatch). Signed-off-by: Stefan Weil --- Why is array para_features in kvm.c terminated by a dummy entry? It is only used in a for loop with upper limit ARRAY_SIZE(para_features) - 1. No particular

[Qemu-devel] [PATCH] target-i386: Add missing 'static' and 'const' attributes

2014-03-16 Thread Stefan Weil
This fixes warnings from the static code analysis (smatch). Signed-off-by: Stefan Weil --- Why is array para_features in kvm.c terminated by a dummy entry? It is only used in a for loop with upper limit ARRAY_SIZE(para_features) - 1. Regards Stefan target-i386/cpu.c |2 +- target-i386/kvm