-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcppcheck_report
95 lines (75 loc) · 4.47 KB
/
cppcheck_report
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
lib/Platinenmacher/display.c:340:76: style:inconclusive: Function 'display_text_draw' argument 3 names different: declaration 'x0' definition 'x'. [funcArgNamesDifferent]
error_code_t display_text_draw(const display_t* dsp, font_t* font, int16_t x,
^
lib/Platinenmacher/display.h:65:76: note: Function 'display_text_draw' argument 3 names different: declaration 'x0' definition 'x'.
error_code_t display_text_draw(const display_t *dsp, font_t *font, int16_t x0,
^
lib/Platinenmacher/display.c:340:76: note: Function 'display_text_draw' argument 3 names different: declaration 'x0' definition 'x'.
error_code_t display_text_draw(const display_t* dsp, font_t* font, int16_t x,
^
lib/Platinenmacher/display.c:341:13: style:inconclusive: Function 'display_text_draw' argument 4 names different: declaration 'y0' definition 'y'. [funcArgNamesDifferent]
int16_t y, const char* text, uint8_t color)
^
lib/Platinenmacher/display.h:66:19: note: Function 'display_text_draw' argument 4 names different: declaration 'y0' definition 'y'.
int16_t y0, const char *text, uint8_t color);
^
lib/Platinenmacher/display.c:341:13: note: Function 'display_text_draw' argument 4 names different: declaration 'y0' definition 'y'.
int16_t y, const char* text, uint8_t color)
^
lib/Platinenmacher/gui/map.c:108:22: style:inconclusive: Boolean expression 'x!=x_old' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean]
if ((x != x_old) | (y != y_old)) {
^
src/gps.c:63:5: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode]
const gps_t* _gps;
^
src/screens/map_screen.c:47:5: style: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode]
if (map_position->fix != GPS_FIX_INVALID) {
^
src/sd.c:137:15: style: Local variable 'path' shadows outer variable [shadowVariable]
char* path = RTOS_Malloc(strlen(file->filename));
^
src/icons_32/icons_32.h:23:16: note: Shadowed declaration
extern uint8_t path[];
^
src/sd.c:137:15: note: Shadow variable
char* path = RTOS_Malloc(strlen(file->filename));
^
src/main.c:352:0: style: The function 'StartMapDownloaderTask' is never used. [unusedFunction]
^
src/ota.c:59:0: style: The function 'StartOTATask' is never used. [unusedFunction]
^
src/main.c:313:0: style: The function 'StartPowerTask' is never used. [unusedFunction]
^
src/main.c:134:0: style: The function 'app_main' is never used. [unusedFunction]
^
lib/Platinenmacher/parser/command.c:105:0: style: The function 'command_init' is never used. [unusedFunction]
^
lib/Platinenmacher/parser/command.c:80:0: style: The function 'command_parser' is never used. [unusedFunction]
^
lib/Platinenmacher/display.c:325:0: style: The function 'display_draw_raw' is never used. [unusedFunction]
^
src/gps.c:100:0: style: The function 'gps_stop_parser' is never used. [unusedFunction]
^
lib/Platinenmacher/gui/graph.c:97:0: style: The function 'graph_update_data' is never used. [unusedFunction]
^
lib/lsm303/lsm303.c:128:0: style: The function 'lsm303_acc_register_write_byte' is never used. [unusedFunction]
^
lib/Platinenmacher/gui/map.c:216:0: style: The function 'map_free_waypoints' is never used. [unusedFunction]
^
src/map_loader.c:135:0: style: The function 'maploader_screen_element' is never used. [unusedFunction]
^
lib/helper/printfb.c:4:0: style: The function 'printf_fb' is never used. [unusedFunction]
^
src/gui.c:252:0: style: The function 'render_cmd_cb' is never used. [unusedFunction]
^
test/embedded/test_gui/test_display.c:6:0: style: The function 'setUp' is never used. [unusedFunction]
^
lib/Platinenmacher_HAL_ESP32/hw/esp32/spi.c:22:0: style: The function 'spi_create_transfer' is never used. [unusedFunction]
^
lib/Platinenmacher_HAL_ESP32/hw/esp32/spi.c:14:0: style: The function 'spi_init' is never used. [unusedFunction]
^
test/embedded/test_gui/test_display.c:10:0: style: The function 'tearDown' is never used. [unusedFunction]
^
src/screens/map_screen.c:43:0: style: The function 'updateInfoText' is never used. [unusedFunction]
^
nofile:0:0: information: Cppcheck cannot find all the include files (use --check-config for details) [missingInclude]