Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Feb 9, 2024
1 parent 80a0690 commit b6ac52e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/cfg/windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ int stringCompare_mbscmp(const unsigned char *string1, const unsigned char *stri
// cppcheck-suppress stringCompare
(void) _mbscmp(string1, string1);
const unsigned char x[] = "x";
// cppcheck-suppress staticStringCompare
// cppcheck-suppress stringCompare
(void) _mbscmp(x, x);
return _mbscmp(string1, string2);
}
Expand All @@ -66,7 +66,7 @@ int stringCompare_mbscmp_l(const unsigned char *string1, const unsigned char *st
// cppcheck-suppress stringCompare
(void) _mbscmp_l(string1, string1, locale);
const unsigned char x[] = "x";
// cppcheck-suppress staticStringCompare
// cppcheck-suppress stringCompare
(void) _mbscmp_l(x, x, locale);
return _mbscmp_l(string1, string2, locale);
}
Expand Down Expand Up @@ -246,7 +246,7 @@ void validCode()

// Valid lstrcat usage, but with warning because it is deprecated
char buf[30] = "hello world";
// cppcheck-suppress lstrcatCalled
// cppcheck-suppress lstrcatACalled
lstrcatA(buf, "test");

// cppcheck-suppress strlwrCalled
Expand Down Expand Up @@ -664,7 +664,7 @@ void resourceLeak_LoadLibrary()
HINSTANCE hInstLib;
hInstLib = ::LoadLibrary(L"My.dll");
typedef BOOL (WINAPI *fpFunc)();
// cppcheck-suppress [unreadVariable, cstyleCast)
// cppcheck-suppress [unreadVariable, cstyleCast]
fpFunc pFunc = (fpFunc)GetProcAddress(hInstLib, "name");
// cppcheck-suppress resourceLeak
}
Expand Down Expand Up @@ -747,7 +747,7 @@ void ignoredReturnValue(FILE* fp)
GetProcessHeap();
// cppcheck-suppress leakReturnValNotUsed
HeapAlloc(GetProcessHeap(), 0, 10);
// cppcheck-suppress leakReturnValNotUsed
// cppcheck-suppress [leakReturnValNotUsed, nullPointer]
HeapReAlloc(GetProcessHeap(), 0, nullptr, 0);

// cppcheck-suppress leakReturnValNotUsed
Expand Down

0 comments on commit b6ac52e

Please sign in to comment.