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(
24712471 symbolt *symbol_ptr;
24722472 move_symbol (new_symbol, symbol_ptr);
24732473
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+ }
24762486 }
24772487 }
24782488 }
You can’t perform that action at this time.
0 commit comments