From 22ae4543a6b0bdbdee24560a5aec1a3517585869 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 22 May 2021 07:39:27 +0200 Subject: [PATCH] Fixed 'make checkcfg' --- test/cfg/gtk.c | 2 +- test/cfg/posix.c | 10 +++++----- test/cfg/std.c | 2 +- test/cfg/windows.cpp | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/cfg/gtk.c b/test/cfg/gtk.c index cd7571b88..d759e68a2 100644 --- a/test/cfg/gtk.c +++ b/test/cfg/gtk.c @@ -397,7 +397,7 @@ void g_once_init_enter_leave_test() } gsize init_val2; - // TODO cppcheck-suppress uninitvar + // cppcheck-suppress uninitvar // cppcheck-suppress ignoredReturnValue g_once_init_enter(&init_val2); diff --git a/test/cfg/posix.c b/test/cfg/posix.c index 27ab4d1f6..de86d771c 100644 --- a/test/cfg/posix.c +++ b/test/cfg/posix.c @@ -393,11 +393,11 @@ void uninitvar(int fd) // cppcheck-suppress uninitvar strtok(strtok_arg1, ";"); - // TODO cppcheck-suppress uninitvar + // cppcheck-suppress uninitvar pthread_mutex_lock(&mutex1); - // TODO cppcheck-suppress uninitvar + // cppcheck-suppress uninitvar (void)pthread_mutex_trylock(&mutex2); - // TODO cppcheck-suppress uninitvar + // cppcheck-suppress uninitvar pthread_mutex_unlock(&mutex3); // after initialization it must be OK to call lock, trylock and unlock for this mutex pthread_mutex_init(&mutex, NULL); @@ -489,7 +489,7 @@ void asctime_r_test(struct tm * tm, char * bufSizeUnknown) asctime_r(tm, bufSize100); // cppcheck-suppress asctime_rCalled - // TODO cppcheck-suppress uninitvar + // cppcheck-suppress uninitvar asctime_r(&tm_uninit_data, bufSize100); // cppcheck-suppress asctime_rCalled // cppcheck-suppress uninitvar @@ -520,7 +520,7 @@ void ctime_r_test(time_t * timep, char * bufSizeUnknown) ctime_r(timep, bufSize100); // cppcheck-suppress ctime_rCalled - // TODO cppcheck-suppress uninitvar + // cppcheck-suppress uninitvar ctime_r(&time_t_uninit_data, bufSize100); // cppcheck-suppress ctime_rCalled // cppcheck-suppress uninitvar diff --git a/test/cfg/std.c b/test/cfg/std.c index 9388b0df1..211ac393b 100644 --- a/test/cfg/std.c +++ b/test/cfg/std.c @@ -1775,7 +1775,7 @@ void uninitvar_mbsrtowcs(wchar_t* d, const char** s, size_t m, mbstate_t *p) // cppcheck-suppress uninitvar (void)mbsrtowcs(dest,s,m,p); - // TODO cppcheck-suppress uninitvar + // cppcheck-suppress uninitvar (void)mbsrtowcs(d,&src,m,p); // cppcheck-suppress uninitvar (void)mbsrtowcs(d,s,max,p); diff --git a/test/cfg/windows.cpp b/test/cfg/windows.cpp index 4b4666225..33a3c8bb1 100644 --- a/test/cfg/windows.cpp +++ b/test/cfg/windows.cpp @@ -677,7 +677,7 @@ void uninitvar() SetLastError(dwordUninit); DWORD dwordUninit; - // TODO cppcheck-suppress uninitvar + // cppcheck-suppress uninitvar GetUserName(NULL, &dwordUninit); FILE *pFileUninit;