Quick fix for 'make checkcfg'

This commit is contained in:
Daniel Marjamäki 2019-03-16 18:17:16 +01:00
parent e9d29e826f
commit 34a8b2b519
4 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@ void ignoreleak(void)
{
char *p = (char *)malloc(10);
__builtin_memset(&(p[0]), 0, 10);
// cppcheck-suppress memleak
// TODO // cppcheck-suppress memleak
}
void memleak_asprintf(char **ptr, const char *fmt, const int arg)

View File

@ -95,7 +95,7 @@ void ignoreleak(void)
{
char *p = (char *)malloc(10);
memset(&(p[0]), 0, 10);
// cppcheck-suppress memleak
// TODO cppcheck-suppress memleak
}
// null pointer

View File

@ -346,7 +346,7 @@ void memleak_LocalAlloc()
(void)LocalFlags(pszBuf);
LocalLock(pszBuf);
LocalUnlock(pszBuf);
// cppcheck-suppress memleak
// TODO cppcheck-suppress memleak
}
void resourceLeak_CreateSemaphoreA()

View File

@ -52,9 +52,9 @@ void validGuiCode()
void nullPointer(const wxString &str)
{
// cppcheck-suppress nullPointer
// TODO cppcheck-suppress nullPointer
wxLogGeneric(wxLOG_Message, (char*)NULL);
// cppcheck-suppress nullPointer
// TODO cppcheck-suppress nullPointer
wxLogMessage((char*)NULL);
double *doublePtr = NULL;