@@ -51,8 +51,10 @@ void nullPointer(char *p)
5151 mkdir (p , 0 );
5252 getcwd (0 , 0 );
5353 // cppcheck-suppress nullPointer
54+ // cppcheck-suppress readdirCalled
5455 readdir (0 );
5556 // cppcheck-suppress nullPointer
57+ // cppcheck-suppress utimeCalled
5658 utime (NULL , NULL );
5759}
5860
@@ -135,10 +137,14 @@ void ignoredReturnValue(void *addr, int fd)
135137void invalidFunctionArg ()
136138{
137139 // cppcheck-suppress invalidFunctionArg
140+ // cppcheck-suppress usleepCalled
138141 usleep (-1 );
142+ // cppcheck-suppress usleepCalled
139143 usleep (0 );
144+ // cppcheck-suppress usleepCalled
140145 usleep (999999 );
141146 // cppcheck-suppress invalidFunctionArg
147+ // cppcheck-suppress usleepCalled
142148 usleep (1000000 );
143149}
144150
@@ -171,15 +177,19 @@ void uninitvar(int fd)
171177 regerror (0 , & reg , 0 , 0 );
172178 // cppcheck-suppress uninitvar
173179 // cppcheck-suppress unreadVariable
180+ // cppcheck-suppress ecvtCalled
174181 char * buffer = ecvt (d , 11 , & decimal , & sign );
182+ // cppcheck-suppress gcvtCalled
175183 gcvt (3.141 , 2 , buf );
176184
177185 char * filename ;
178186 struct utimbuf * times ;
179187 // cppcheck-suppress uninitvar
188+ // cppcheck-suppress utimeCalled
180189 utime (filename , times );
181190 struct timeval times1 [2 ];
182191 // cppcheck-suppress uninitvar
192+ // cppcheck-suppress utimeCalled
183193 utime (filename , times1 );
184194}
185195
@@ -211,9 +221,11 @@ void timet_h(struct timespec* ptp1)
211221 // cppcheck-suppress uninitvar
212222 clock_settime (CLOCK_REALTIME , & tp ); // #6577 - false negative
213223 // cppcheck-suppress uninitvar
224+ // cppcheck-suppress clock_settimeCalled
214225 clock_settime (clk_id , & tp );
215226
216227 time_t clock = time (0 );
217228 char buf [26 ];
229+ // cppcheck-suppress ctime_rCalled
218230 ctime_r (& clock , buf );
219231}
0 commit comments