@@ -1365,7 +1365,7 @@ ZTEST(prf, test_is_none_char_ptr)
1365
1365
float f = 0.1 ;
1366
1366
double d = 0.1 ;
1367
1367
1368
- TOOLCHAIN_DISABLE_WARNING (TOOLCHAIN_WARNING_POINTER_ARITH );
1368
+ TOOLCHAIN_DISABLE_GCC_WARNING (TOOLCHAIN_WARNING_POINTER_ARITH );
1369
1369
zassert_equal (Z_CBPRINTF_IS_NONE_CHAR_PTR (c ), 0 );
1370
1370
zassert_equal (Z_CBPRINTF_IS_NONE_CHAR_PTR (cc ), 0 );
1371
1371
zassert_equal (Z_CBPRINTF_IS_NONE_CHAR_PTR (vc ), 0 );
@@ -1413,7 +1413,7 @@ ZTEST(prf, test_is_none_char_ptr)
1413
1413
1414
1414
zassert_equal (Z_CBPRINTF_IS_NONE_CHAR_PTR ((void * )& c ), 1 );
1415
1415
1416
- TOOLCHAIN_ENABLE_WARNING (TOOLCHAIN_WARNING_POINTER_ARITH );
1416
+ TOOLCHAIN_ENABLE_GCC_WARNING (TOOLCHAIN_WARNING_POINTER_ARITH );
1417
1417
}
1418
1418
1419
1419
ZTEST (prf , test_p_count )
@@ -1427,12 +1427,12 @@ ZTEST(prf, test_p_count)
1427
1427
1428
1428
ZTEST (prf , test_pointers_validate )
1429
1429
{
1430
- TOOLCHAIN_DISABLE_WARNING (TOOLCHAIN_WARNING_POINTER_ARITH );
1430
+ TOOLCHAIN_DISABLE_GCC_WARNING (TOOLCHAIN_WARNING_POINTER_ARITH );
1431
1431
zassert_equal (Z_CBPRINTF_POINTERS_VALIDATE ("no arguments" ), true);
1432
1432
/* const char fails validation */
1433
1433
zassert_equal (Z_CBPRINTF_POINTERS_VALIDATE ("%p" , "string" ), false);
1434
1434
zassert_equal (Z_CBPRINTF_POINTERS_VALIDATE ("%p" , (void * )"string" ), true);
1435
- TOOLCHAIN_ENABLE_WARNING (TOOLCHAIN_WARNING_POINTER_ARITH );
1435
+ TOOLCHAIN_ENABLE_GCC_WARNING (TOOLCHAIN_WARNING_POINTER_ARITH );
1436
1436
}
1437
1437
1438
1438
static void * cbprintf_setup (void )
0 commit comments