File: keep.expect

package info (click to toggle)
splint 3.1.2.dfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 14,732 kB
  • ctags: 16,317
  • sloc: ansic: 150,320; yacc: 3,463; sh: 3,003; makefile: 2,153; lex: 412
file content (23 lines) | stat: -rw-r--r-- 891 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

keep.c: (in function f2)
keep.c:12:9: Keep storage passed as only param: free (x)
   keep.c:10:26: Storage x becomes keep
keep.c: (in function f3)
keep.c:19:27: Keep storage x not transferred before return
   keep.c:15:25: Storage x becomes keep
keep.c: (in function f5)
keep.c:36:10: Keep storage x not transferred before return
   keep.c:34:39: Storage x becomes keep
keep.c: (in function f6)
keep.c:44:5: Variable x is kept in true branch, but not kept in continuation.
   keep.c:44:5: in true branch:
   keep.c:43:11: Storage x becomes kept
   keep.c:44:5: in continuation:
   keep.c:39:26: Storage x becomes keep
keep.c:46:7: Kept storage x passed as keep param: f2 (x)
   keep.c:44:5: Storage x becomes kept
keep.c: (in function f7)
keep.c:60:10: Kept storage x returned as implicitly only: x
   keep.c:58:5: Storage x becomes kept

Finished checking --- 6 code warnings, as expected