c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.