CppCheck Report

Statistics

Total issues found: 5

Issues by severity:

  • information: 3

  • style: 2

keyboard_interface.c

Location: components\keyboard_interface\src\keyboard_interface.c

Information: missingIncludeSystem

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

1#include <windows.h>
2#include "button_interface.h"
3
4void buttonInterface_init(void)

Style: unusedFunction

The function ‘buttonInterface_init’ is never used.

CWE: 561

1#include <windows.h>
2#include "button_interface.h"
3
4void buttonInterface_init(void)
5{
6    // No initialization needed for Windows console
7}

Style: unusedFunction

The function ‘ButtonInterfaceIsButtonPressed’ is never used.

CWE: 561

 6    // No initialization needed for Windows console
 7}
 8
 9boolean ButtonInterfaceIsButtonPressed(KeyCodes key)
10{
11    return (GetAsyncKeyState(key) & 0x8000) != 0;
12}

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