Debian Codegraph @

tests/parsers/example-output/splint/unconditional-file-leak.stdout

raw
1 examples/unconditional-file-leak.c: (in function test)
2 examples/unconditional-file-leak.c:7:7:
3 Called procedure fopen may access file system state, but globals list does
4 not include globals fileSystem
5 A called function uses internal state, but the globals list for the function
6 being checked does not include internalState (Use -internalglobs to inhibit
7 warning)
8 examples/unconditional-file-leak.c:7:7:
9 Undocumented modification of file system state possible from call to fopen:
10 fopen(filename, "w")
11 report undocumented file system modifications (applies to unspecified
12 functions if modnomods is set) (Use -modfilesys to inhibit warning)
13 examples/unconditional-file-leak.c:9:5:
14 Called procedure fprintf may access file system state, but globals list
15 does not include globals fileSystem
16 examples/unconditional-file-leak.c:9:5:
17 Undocumented modification of file system state possible from call to
18 fprintf: fprintf(f, "%i: %i", i, i * i)
19 examples/unconditional-file-leak.c:9:14:
20 Possibly null storage f passed as non-null param: fprintf (f, ...)
21 A possibly null pointer is passed as a parameter corresponding to a formal
22 parameter with no /*@null@*/ annotation. If NULL may be used for this
23 parameter, add a /*@null@*/ annotation to the function parameter declaration.
24 (Use -nullpass to inhibit warning)
25 examples/unconditional-file-leak.c:7:7: Storage f may become null
26 examples/unconditional-file-leak.c:9:5: Body of for statement is not a block:
27 fprintf(f, "%i: %i", i, i * i);
28 Loop body is a single statement, not a compound block. (Use -forblock to
29 inhibit warning)
30 examples/unconditional-file-leak.c:3:6: Function test declared but not used
31 A function is declared but not used. Use /*@unused@*/ in front of function
32 header to suppress message. (Use -fcnuse to inhibit warning)
33 examples/unconditional-file-leak.c:10:1: Definition of test
34 examples/unconditional-file-leak.c:3:6:
35 Function test exported but not declared in header file
36 A declaration is exported, but does not appear in a header file. (Use
37 -exportheader to inhibit warning)
38 examples/unconditional-file-leak.c:10:1: Definition of test
39