mirror of https://gitee.com/openkylin/qemu.git
target-i386: Add missing 'static' and 'const' attributes
This fixes warnings from the static code analysis (smatch). Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
08cf99629d
commit
a443bc3496
|
@ -316,7 +316,7 @@ typedef struct X86RegisterInfo32 {
|
|||
|
||||
#define REGISTER(reg) \
|
||||
[R_##reg] = { .name = #reg, .qapi_enum = X86_CPU_REGISTER32_##reg }
|
||||
X86RegisterInfo32 x86_reg_info_32[CPU_NB_REGS32] = {
|
||||
static const X86RegisterInfo32 x86_reg_info_32[CPU_NB_REGS32] = {
|
||||
REGISTER(EAX),
|
||||
REGISTER(ECX),
|
||||
REGISTER(EDX),
|
||||
|
|
|
@ -122,7 +122,7 @@ static struct kvm_cpuid2 *get_supported_cpuid(KVMState *s)
|
|||
return cpuid;
|
||||
}
|
||||
|
||||
struct kvm_para_features {
|
||||
static const struct kvm_para_features {
|
||||
int cap;
|
||||
int feature;
|
||||
} para_features[] = {
|
||||
|
|
Loading…
Reference in New Issue