Fixed 'make checkcfg'
This commit is contained in:
parent
68c46e146d
commit
22ae4543a6
|
@ -397,7 +397,7 @@ void g_once_init_enter_leave_test()
|
||||||
}
|
}
|
||||||
|
|
||||||
gsize init_val2;
|
gsize init_val2;
|
||||||
// TODO cppcheck-suppress uninitvar
|
// cppcheck-suppress uninitvar
|
||||||
// cppcheck-suppress ignoredReturnValue
|
// cppcheck-suppress ignoredReturnValue
|
||||||
g_once_init_enter(&init_val2);
|
g_once_init_enter(&init_val2);
|
||||||
|
|
||||||
|
|
|
@ -393,11 +393,11 @@ void uninitvar(int fd)
|
||||||
// cppcheck-suppress uninitvar
|
// cppcheck-suppress uninitvar
|
||||||
strtok(strtok_arg1, ";");
|
strtok(strtok_arg1, ";");
|
||||||
|
|
||||||
// TODO cppcheck-suppress uninitvar
|
// cppcheck-suppress uninitvar
|
||||||
pthread_mutex_lock(&mutex1);
|
pthread_mutex_lock(&mutex1);
|
||||||
// TODO cppcheck-suppress uninitvar
|
// cppcheck-suppress uninitvar
|
||||||
(void)pthread_mutex_trylock(&mutex2);
|
(void)pthread_mutex_trylock(&mutex2);
|
||||||
// TODO cppcheck-suppress uninitvar
|
// cppcheck-suppress uninitvar
|
||||||
pthread_mutex_unlock(&mutex3);
|
pthread_mutex_unlock(&mutex3);
|
||||||
// after initialization it must be OK to call lock, trylock and unlock for this mutex
|
// after initialization it must be OK to call lock, trylock and unlock for this mutex
|
||||||
pthread_mutex_init(&mutex, NULL);
|
pthread_mutex_init(&mutex, NULL);
|
||||||
|
@ -489,7 +489,7 @@ void asctime_r_test(struct tm * tm, char * bufSizeUnknown)
|
||||||
asctime_r(tm, bufSize100);
|
asctime_r(tm, bufSize100);
|
||||||
|
|
||||||
// cppcheck-suppress asctime_rCalled
|
// cppcheck-suppress asctime_rCalled
|
||||||
// TODO cppcheck-suppress uninitvar
|
// cppcheck-suppress uninitvar
|
||||||
asctime_r(&tm_uninit_data, bufSize100);
|
asctime_r(&tm_uninit_data, bufSize100);
|
||||||
// cppcheck-suppress asctime_rCalled
|
// cppcheck-suppress asctime_rCalled
|
||||||
// cppcheck-suppress uninitvar
|
// cppcheck-suppress uninitvar
|
||||||
|
@ -520,7 +520,7 @@ void ctime_r_test(time_t * timep, char * bufSizeUnknown)
|
||||||
ctime_r(timep, bufSize100);
|
ctime_r(timep, bufSize100);
|
||||||
|
|
||||||
// cppcheck-suppress ctime_rCalled
|
// cppcheck-suppress ctime_rCalled
|
||||||
// TODO cppcheck-suppress uninitvar
|
// cppcheck-suppress uninitvar
|
||||||
ctime_r(&time_t_uninit_data, bufSize100);
|
ctime_r(&time_t_uninit_data, bufSize100);
|
||||||
// cppcheck-suppress ctime_rCalled
|
// cppcheck-suppress ctime_rCalled
|
||||||
// cppcheck-suppress uninitvar
|
// cppcheck-suppress uninitvar
|
||||||
|
|
|
@ -1775,7 +1775,7 @@ void uninitvar_mbsrtowcs(wchar_t* d, const char** s, size_t m, mbstate_t *p)
|
||||||
|
|
||||||
// cppcheck-suppress uninitvar
|
// cppcheck-suppress uninitvar
|
||||||
(void)mbsrtowcs(dest,s,m,p);
|
(void)mbsrtowcs(dest,s,m,p);
|
||||||
// TODO cppcheck-suppress uninitvar
|
// cppcheck-suppress uninitvar
|
||||||
(void)mbsrtowcs(d,&src,m,p);
|
(void)mbsrtowcs(d,&src,m,p);
|
||||||
// cppcheck-suppress uninitvar
|
// cppcheck-suppress uninitvar
|
||||||
(void)mbsrtowcs(d,s,max,p);
|
(void)mbsrtowcs(d,s,max,p);
|
||||||
|
|
|
@ -677,7 +677,7 @@ void uninitvar()
|
||||||
SetLastError(dwordUninit);
|
SetLastError(dwordUninit);
|
||||||
|
|
||||||
DWORD dwordUninit;
|
DWORD dwordUninit;
|
||||||
// TODO cppcheck-suppress uninitvar
|
// cppcheck-suppress uninitvar
|
||||||
GetUserName(NULL, &dwordUninit);
|
GetUserName(NULL, &dwordUninit);
|
||||||
|
|
||||||
FILE *pFileUninit;
|
FILE *pFileUninit;
|
||||||
|
|
Loading…
Reference in New Issue