- default:
- if (warning.other) {
- const char *what = get_entity_kind_name(entity->kind);
- warningf(&attribute->source_position,
- "visibility attribute specification on %s '%S' ignored",
- what, entity->base.symbol);
- }
+ default: {
+ source_position_t const *const pos = &attribute->source_position;
+ char const *const what = get_entity_kind_name(entity->kind);
+ symbol_t const *const sym = entity->base.symbol;
+ warningf(WARN_OTHER, pos, "visibility attribute specification on %s '%S' ignored", what, sym);