File: break.expect

package info (click to toggle)
splint 3.1.2.dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 12,908 kB
  • ctags: 15,816
  • sloc: ansic: 150,306; yacc: 3,463; sh: 3,426; makefile: 2,217; lex: 412
file content (33 lines) | stat: -rw-r--r-- 1,508 bytes parent folder | download | duplicates (8)
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

break.c: (in function f)
break.c:12:4: Break preceded by loopbreak is breaking a switch
break.c:17:14: Suspected infinite loop.  No value used in loop test (x) is
                  modified by test or loop body.
break.c:3:10: Suspected infinite loop.  No value used in loop test (x) is
                 modified by test or loop body.
break.c:34:24: Break preceded by innerbreak is not in a deep loop

Finished checking --- 4 code warnings, as expected

break.c: (in function f)
break.c:12:4: Break preceded by loopbreak is breaking a switch
break.c:14:4: Break statement in switch inside loop
break.c:21:8: Break statement in nested loop
break.c:17:14: Suspected infinite loop.  No value used in loop test (x) is
                  modified by test or loop body.
break.c:3:10: Suspected infinite loop.  No value used in loop test (x) is
                 modified by test or loop body.
break.c:34:24: Break preceded by innerbreak is not in a deep loop

Finished checking --- 6 code warnings, as expected

break.c: (in function f)
break.c:12:4: Break preceded by loopbreak is breaking a switch
break.c:14:4: Break statement in switch inside loop
break.c:17:14: Suspected infinite loop.  No value used in loop test (x) is
                  modified by test or loop body.
break.c:3:10: Suspected infinite loop.  No value used in loop test (x) is
                 modified by test or loop body.
break.c:34:24: Break preceded by innerbreak is not in a deep loop

Finished checking --- 5 code warnings, as expected