-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathreport-const.txt
101 lines (56 loc) · 1.9 KB
/
report-const.txt
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
-----
Proprietary Tool Suite
(Nothing to report)
-----
$ scan-build clang constant.c
constant.c:31:21: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
const example_s const * alias = &data;
^
No bugs found.
-----
$ cppcheck constant.c
(Nothing to report)
-----
$ splint constant.c
Splint 3.1.2 --- 03 May 2009
constant.c:26:9: Function main declared to return SINT_32, should return int
The function main does not match the expected type. (Use -maintype to inhibit
warning)
Finished checking --- 1 code warning
-----
$ flawfinder constant.c
FINAL RESULTS:
ANALYSIS SUMMARY:
No hits found.
-----
$ flint++ constant.c
===============================================================================
File constant.c:
Errors: 0
Warnings: 0
Advice: 2
===============================================================================
Line 19: Advice
Prefer `nullptr' to `NULL' in new C++ code.
Unlike `NULL', `nullptr' can't accidentally be used in arithmetic or as an integer. See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2431.pdf for details.
Line 41: Advice
Prefer `nullptr' to `NULL' in new C++ code.
Unlike `NULL', `nullptr' can't accidentally be used in arithmetic or as an integer. See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2431.pdf for details.
===============================================================================
Lint Summary: 1 files
Errors: 0
Warnings: 0
Advice: 2
===============================================================================
-----
$ frama-c constant.c
(Nothing to report)
-----
$ vera++ constant.c
(Nothing to report)
-----
$ oclint constant.c
Compiler Warnings:
/home/snewton/src/github_all_ps/static-analysis-argumentation/c_examples/constant.c:31:21: duplicate 'const' declaration specifier
OCLint Report
Summary: TotalFiles=1 FilesWithViolations=1 P1=0 P2=0 P3=2