blob: 068bf0d6979fe520085de6c4078e738b18030373 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
mistranslation: 0.600
socket: 0.569
semantic: 0.536
graphic: 0.520
device: 0.469
network: 0.458
ppc: 0.446
x86: 0.293
files: 0.282
performance: 0.251
architecture: 0.241
register: 0.213
vnc: 0.209
arm: 0.192
i386: 0.189
debug: 0.172
hypervisor: 0.158
PID: 0.112
kernel: 0.107
permissions: 0.103
KVM: 0.101
user-level: 0.101
boot: 0.095
peripherals: 0.091
assembly: 0.085
VMM: 0.084
TCG: 0.082
virtual: 0.081
risc-v: 0.076
hw/block/onenand.c:520: dead code ?
qemu/hw/block/onenand.c:520] -> [qemu/hw/block/onenand.c:521]: (warning) Opposite inner 'if' condition leads to a dead code block.
Source code is
for (b = 0; b < s->blocks; b ++) {
if (b >= s->blocks) {
s->status |= ONEN_ERR_CMD;
break;
}
I am not sure if the if condition can be merely deleted, or something more
complex needs to be implemented.
Recent qemu trunk.
Fix has now been included here:
https://git.qemu.org/?p=qemu.git;a=commitdiff;h=dbfa934106d22402d
|