CppCheck Report

Statistics

Total issues found: 17

Issues by severity:

  • information: 2

  • style: 15

rte.c

Location: components\rte\src\rte.c

Style: unusedFunction

The function ‘RteSetPowerState’ is never used.

CWE: 561

22static boolean validAbortCommand = FALSE;
23static boolean selfDestructState = FALSE;
24
25void RteSetPowerState(PowerState state)
26{
27    currentPowerState = state;
28}

Style: unusedFunction

The function ‘RteGetPowerState’ is never used.

CWE: 561

27    currentPowerState = state;
28}
29
30PowerState RteGetPowerState(void)
31{
32    return currentPowerState;
33}

Style: unusedFunction

The function ‘RteSetPowerKeyPressedEvent’ is never used.

CWE: 561

32    return currentPowerState;
33}
34
35void RteSetPowerKeyPressedEvent(boolean value)
36{
37    powerKeyPressedEvent = value;
38}

Style: unusedFunction

The function ‘RteGetPowerKeyPressedEvent’ is never used.

CWE: 561

37    powerKeyPressedEvent = value;
38}
39
40boolean RteGetPowerKeyPressedEvent()
41{
42    return powerKeyPressedEvent;
43}

Style: unusedFunction

The function ‘RteSetLightValue’ is never used.

CWE: 561

42    return powerKeyPressedEvent;
43}
44
45void RteSetLightValue(RGBColor value)
46{
47    lightValue = value;
48}

Style: unusedFunction

The function ‘RteGetLightValue’ is never used.

CWE: 561

47    lightValue = value;
48}
49
50void RteGetLightValue(RGBColor *value)
51{
52    *value = lightValue;
53}

Style: unusedFunction

The function ‘RteIsKeyPressed’ is never used.

CWE: 561

52    *value = lightValue;
53}
54
55boolean RteIsKeyPressed(KeyCodes key)
56{
57    return ButtonInterfaceIsButtonPressed(key);
58}

Style: unusedFunction

The function ‘RteSetMainKnobValue’ is never used.

CWE: 561

57    return ButtonInterfaceIsButtonPressed(key);
58}
59
60void RteSetMainKnobValue(percentage_t value)
61{
62    if (value > 100)
63    {

Style: unusedFunction

The function ‘RteGetMainKnobValue’ is never used.

CWE: 561

69    }
70}
71
72percentage_t RteGetMainKnobValue(void)
73{
74    return mainKnobValue;
75}

Style: unusedFunction

The function ‘RteSetBrightnessValue’ is never used.

CWE: 561

74    return mainKnobValue;
75}
76
77void RteSetBrightnessValue(brightness_t value)
78{
79    brightnessValue = value;
80}

Style: unusedFunction

The function ‘RteGetBrightnessValue’ is never used.

CWE: 561

79    brightnessValue = value;
80}
81
82brightness_t RteGetBrightnessValue(void)
83{
84    return brightnessValue;
85}

Style: unusedFunction

The function ‘RteGetOffCourse’ is never used.

CWE: 561

 96}
 97#endif // CONFIG_BRIGHTNESS_ADJUSTMENT_PERIOD
 98
 99void RteGetOffCourse(boolean *value)
100{
101    if (value != NULL)
102    {

Style: unusedFunction

The function ‘RteGetAbortCommanded’ is never used.

CWE: 561

104    }
105}
106
107boolean RteGetAbortCommanded(void)
108{
109    return abortCommanded;
110}

Style: unusedFunction

The function ‘RteGetValidAbortCommand’ is never used.

CWE: 561

109    return abortCommanded;
110}
111
112boolean RteGetValidAbortCommand(void)
113{
114    return validAbortCommand;
115}

Style: unusedFunction

The function ‘RteSetSelfDestructState’ is never used.

CWE: 561

114    return validAbortCommand;
115}
116
117void RteSetSelfDestructState(boolean state)
118{
119    selfDestructState = state;
120}

platform_types.h

Location: platforms\platform_types.h

Information: missingIncludeSystem

Include file: <stdint.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.

1#ifndef platform_types_h_
2#define platform_types_h_
3
4#include <stdint.h>
5
6#ifndef NULL
7#ifndef __cplusplus