-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
report.txt
71 lines (70 loc) · 4.11 KB
/
report.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
__tests__/client/client.c:285:13: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode]
stop_child_thread();
^
__tests__/client/client.c:56:9: style: The scope of the variable 'rcvd_bytes' can be reduced. [variableScope]
int rcvd_bytes;
^
__tests__/client/client.c:86:92: style: The scope of the variable 'n' can be reduced. [variableScope]
int opt, port, debug_level, connect_status, sent_bytes, recv_bytes, temp_return_value, n;
^
__tests__/fibonacci.c:21:21: style: The scope of the variable 'first' can be reduced. [variableScope]
static long int first = 0, second = 1, sum;
^
__tests__/fibonacci.c:21:32: style: The scope of the variable 'second' can be reduced. [variableScope]
static long int first = 0, second = 1, sum;
^
__tests__/fibonacci.c:21:44: style: The scope of the variable 'sum' can be reduced. [variableScope]
static long int first = 0, second = 1, sum;
^
__tests__/fibonacci.c:9:16: style: Variable 'i' is assigned a value that is never used. [unreadVariable]
long int i = 0, j = 1;
^
__tests__/fibonacci.c:9:23: style: Variable 'j' is assigned a value that is never used. [unreadVariable]
long int i = 0, j = 1;
^
__tests__/fibonacci.c:8:9: style: Unused variable: k [unusedVariable]
int k, n;
^
__tests__/server/server.c:115:9: style: The scope of the variable 'client_fd' can be reduced. [variableScope]
int client_fd, server_status, bind_status, listen_status, accept_status,
^
__tests__/server/server.c:115:35: style: The scope of the variable 'bind_status' can be reduced. [variableScope]
int client_fd, server_status, bind_status, listen_status, accept_status,
^
__tests__/server/server.c:115:20: style: Unused variable: server_status [unusedVariable]
int client_fd, server_status, bind_status, listen_status, accept_status,
^
__tests__/server/server.c:115:63: style: Unused variable: accept_status [unusedVariable]
int client_fd, server_status, bind_status, listen_status, accept_status,
^
__tests__/server/server.c:116:38: style: Unused variable: bytes_sent [unusedVariable]
addr_status, n = 0, yes = 1, bytes_sent;
^
__tests__/server/server.c:130:10: style: Unused variable: buff [unusedVariable]
char buff[MAX_MSG_LEN], addr[INET_ADDRSTRLEN];
^
__tests__/test.c:26:9: style: Obsolete function 'asctime' called. It is recommended to use 'strftime' instead. [asctimeCalled]
str = asctime(local);
^
__tests__/test.c:243:6: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition]
if (listen_status = listen(server_fd, backlog) == -1) {
^
__tests__/test.c:243:21: style: Variable 'listen_status' is assigned a value that is never used. [unreadVariable]
if (listen_status = listen(server_fd, backlog) == -1) {
^
__tests__/test.c:262:20: style: Variable 'greetings' is assigned a value that is never used. [unreadVariable]
char greetings[] = "SERVER: Hi client, you are now connected\n";
^
__tests__/test.c:164:18: style: Unused variable: server_status [unusedVariable]
int client_fd, server_status, bind_status, listen_status, accept_status,
^
__tests__/test.c:164:61: style: Unused variable: accept_status [unusedVariable]
int client_fd, server_status, bind_status, listen_status, accept_status,
^
__tests__/test.c:166:8: style: Unused variable: buff [unusedVariable]
char buff[max_mssg_len];
^
__tests__/test.c:169:7: style: Unused variable: bytes_sent [unusedVariable]
int bytes_sent;
^
nofile:0:0: information: Cppcheck cannot find all the include files (use --check-config for details) [missingInclude]