Skip to content

Commit

Permalink
global: allow inline suppressions for cppcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
and3rson committed Mar 10, 2024
1 parent 7771c26 commit b1b9b5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ cppcheck: ## Run cppcheck check
--suppress=knownPointerToBool \
--suppress=noCopyConstructor \
--suppress=noOperatorEq \
--inline-suppr \
--error-exitcode=1

.PHONY: fix
Expand Down
3 changes: 2 additions & 1 deletion firmware/keira/src/apps/nes/osd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ void osd_fullname(char* fullname, const char* shortname) {
}

/* This gives filenames for storage of saves */
extern char* osd_newextension(char* string, const char* ext) {
// cppcheck-suppress constParameterPointer
extern char* osd_newextension(char* string, char* ext) {
// dirty: assume both extensions is 3 characters
size_t l = strlen(string);
string[l - 3] = ext[1];
Expand Down

0 comments on commit b1b9b5c

Please sign in to comment.