@@ -293,7 +293,6 @@ void g_new_if_test()
293293 };
294294
295295 const struct a * pNew3 ;
296- // cppcheck-suppress valueFlowBailoutIncompleteVar
297296 if (pNew3 = g_new (struct a , 6 )) {
298297 printf ("%p" , pNew3 );
299298 }
@@ -306,7 +305,6 @@ void g_new0_test()
306305 int b ;
307306 };
308307 // valid
309- // cppcheck-suppress valueFlowBailoutIncompleteVar
310308 struct a * pNew1 = g_new0 (struct a , 5 );
311309 printf ("%p" , pNew1 );
312310 g_free (pNew1 );
@@ -325,7 +323,6 @@ void g_try_new_test()
325323 int b ;
326324 };
327325 // valid
328- // cppcheck-suppress valueFlowBailoutIncompleteVar
329326 struct a * pNew1 = g_try_new (struct a , 5 );
330327 printf ("%p" , pNew1 );
331328 g_free (pNew1 );
@@ -343,7 +340,6 @@ void g_try_new0_test()
343340 int b ;
344341 };
345342 // valid
346- // cppcheck-suppress valueFlowBailoutIncompleteVar
347343 struct a * pNew1 = g_try_new0 (struct a , 5 );
348344 printf ("%p" , pNew1 );
349345 g_free (pNew1 );
@@ -361,7 +357,7 @@ void g_renew_test()
361357 struct a {
362358 int b ;
363359 };
364- // cppcheck-suppress [ leakReturnValNotUsed,valueFlowBailoutIncompleteVar]
360+ // cppcheck-suppress leakReturnValNotUsed
365361 g_renew (struct a , NULL , 1 );
366362
367363 struct a * pNew = g_new (struct a , 1 );
@@ -376,7 +372,7 @@ void g_try_renew_test()
376372 struct a {
377373 int b ;
378374 };
379- // cppcheck-suppress [ leakReturnValNotUsed,valueFlowBailoutIncompleteVar]
375+ // cppcheck-suppress leakReturnValNotUsed
380376 g_try_renew (struct a , NULL , 1 );
381377
382378 struct a * pNew = g_try_new (struct a , 1 );
0 commit comments