Various minor fixes for compiler/linter (other then splint itself) warnings.
[splint-patched.git] / test / arraylit.expect
blobdd21b08463bd42fe4d302d1496acabf48e0cd511
2 arraylit.c: (in function main)
3 arraylit.c:7:34: String literal with 6 characters is assigned to char [5] (no
4                     room for null terminator): "12345"
5 arraylit.c:13:3: Suspect modification of observer unmodstr[0]:
6                     unmodstr[0] = 'U'
7    arraylit.c:5:24: Storage unmodstr[0] becomes observer
9 Finished checking --- 2 code warnings, as expected
11 arraylit.c: (in function main)
12 arraylit.c:6:38: String literal with 18 characters is assigned to char [20]
13                     (possible waste of storage): "modifiable string"
14 arraylit.c:7:34: String literal with 6 characters is assigned to char [5] (no
15                     room for null terminator): "12345"
16 arraylit.c:9:34: String literal with 6 characters is assigned to char [7]
17                     (possible waste of storage): "12345"
18 arraylit.c:13:3: Suspect modification of observer unmodstr[0]:
19                     unmodstr[0] = 'U'
20    arraylit.c:5:24: Storage unmodstr[0] becomes observer
22 Finished checking --- 4 code warnings, as expected