File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -2471,8 +2471,18 @@ void c_typecheck_baset::typecheck_side_effect_function_call(
2471
2471
symbolt *symbol_ptr;
2472
2472
move_symbol (new_symbol, symbol_ptr);
2473
2473
2474
- warning ().source_location =f_op.find_source_location ();
2475
- warning () << " function '" << identifier << " ' is not declared" << eom;
2474
+ // We increase the verbosity level of the warning
2475
+ // for gcc/clang __builtin_ functions, since there are too many.
2476
+ if (identifier.starts_with (" __builtin_" ))
2477
+ {
2478
+ debug ().source_location = f_op.find_source_location ();
2479
+ debug () << " builtin '" << identifier << " ' is unknown" << eom;
2480
+ }
2481
+ else
2482
+ {
2483
+ warning ().source_location = f_op.find_source_location ();
2484
+ warning () << " function '" << identifier << " ' is not declared" << eom;
2485
+ }
2476
2486
}
2477
2487
}
2478
2488
}
You can’t perform that action at this time.
0 commit comments