diff --git a/makefile b/makefile index 9009737..e291721 100644 --- a/makefile +++ b/makefile @@ -22,7 +22,7 @@ clean: rm -f looper integration_test src/*.o check: - cppcheck --enable=all --error-exitcode=1 --suppress=missingIncludeSystem --suppress=usleepCalled --suppress=unreadVariable --suppress=normalCheckLevelMaxBranches src/*.c --library=posix . + cppcheck --enable=all --error-exitcode=1 --suppress=unreadVariable src/*.c --library=posix . # Optional: Format code using clang-format format: diff --git a/src/channel.c b/src/channel.c index e68e371..8eaf4d7 100644 --- a/src/channel.c +++ b/src/channel.c @@ -1,3 +1,4 @@ +// cppcheck-suppress missingIncludeSystem #include "channel.h" #include #include diff --git a/src/channel.h b/src/channel.h index cb51698..a0c2f89 100644 --- a/src/channel.h +++ b/src/channel.h @@ -1,6 +1,7 @@ #ifndef CHANNEL_H #define CHANNEL_H +// cppcheck-suppress missingIncludeSystem #include #include diff --git a/src/looper.c b/src/looper.c index e343b77..299a8a2 100644 --- a/src/looper.c +++ b/src/looper.c @@ -1,3 +1,4 @@ +// cppcheck-suppress missingIncludeSystem #include "looper.h" #include "channel.h" #include "midi.h" diff --git a/src/looper.h b/src/looper.h index 7fb68d4..9e064a5 100644 --- a/src/looper.h +++ b/src/looper.h @@ -1,6 +1,7 @@ #ifndef LOOPER_H #define LOOPER_H +// cppcheck-suppress missingIncludeSystem #include /* Initialisation – must be called after setting process callback */ diff --git a/src/main.c b/src/main.c index b5c816c..9a82edd 100644 --- a/src/main.c +++ b/src/main.c @@ -1,3 +1,4 @@ +// cppcheck-suppress missingIncludeSystem #include "looper.h" #include #include diff --git a/src/midi.c b/src/midi.c index e3471cf..bac71c5 100644 --- a/src/midi.c +++ b/src/midi.c @@ -1,3 +1,4 @@ +// cppcheck-suppress missingIncludeSystem #include "midi.h" #include "channel.h" #include diff --git a/src/midi.h b/src/midi.h index 08b5eeb..d5e57d2 100644 --- a/src/midi.h +++ b/src/midi.h @@ -1,6 +1,7 @@ #ifndef MIDI_H #define MIDI_H +// cppcheck-suppress missingIncludeSystem #include void midi_handle_events(void *port_buffer, jack_nframes_t nframes); diff --git a/tests/integration.c b/tests/integration.c index de4b3ff..07f144b 100644 --- a/tests/integration.c +++ b/tests/integration.c @@ -1,3 +1,6 @@ +// cppcheck-suppress missingIncludeSystem +// cppcheck-suppress usleepCalled +// cppcheck-suppress normalCheckLevelMaxBranches #include #include #include