CppCheck Report

Statistics

Total issues found: 3

Issues by severity:

  • information: 2

  • style: 1

os.c

Location: platforms\win_exe\src\os.c

Information: missingIncludeSystem

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

1#include "autoconf.h"
2#include "spled.h"
3#include <unistd.h>
4
5static void OsTask(void)
6{

Style: unusedFunction

The function ‘OsRun’ is never used.

CWE: 561

 9    usleep(CONFIG_OS_TASK_PERIOD * 1000); // CONFIG_OS_TASK_PERIOD is in milliseconds
10}
11
12void OsRun(void)
13{
14    while (1)
15    {