@@ -183,38 +183,6 @@ int uninitvar_getpw(uid_t uid, char *buf)
183183 return getpw (someUid , buf );
184184}
185185
186- // #9323, #9331
187- void syntaxError_timercmp (struct timeval t )
188- {
189- (void )timercmp (& t , & t , < );
190- (void )timercmp (& t , & t , <=);
191- (void )timercmp (& t , & t , = = );
192- (void )timercmp (& t , & t , != );
193- (void )timercmp (& t , & t , >=);
194- (void )timercmp (& t , & t , > );
195- }
196-
197- // False negative: #9346
198- void uninitvar_timercmp (struct timeval t )
199- {
200- struct timeval uninit ;
201- (void )timercmp (& t , & uninit , < );
202- (void )timercmp (& uninit , & t , <=);
203- (void )timercmp (& uninit , & uninit , = = );
204- }
205-
206- void nullPointer_timercmp (struct timeval t )
207- {
208- // cppcheck-suppress constVariablePointer
209- struct timeval * p = 0 ;
210- // cppcheck-suppress nullPointer
211- (void )timercmp (& t , p , < );
212- // cppcheck-suppress nullPointer
213- (void )timercmp (p , & t , <=);
214- // cppcheck-suppress nullPointer
215- (void )timercmp (p , p , = = );
216- }
217-
218186// Declaration necessary because there is no specific / portable header.
219187extern void * xcalloc (size_t nmemb , size_t size );
220188extern void * xmalloc (size_t size );
0 commit comments