RFA (tree.c): PATCH to make warn_deprecated_use return bool
Richard Biener
richard.guenther@gmail.com
Wed May 16 09:42:00 GMT 2018
On Wed, May 16, 2018 at 3:01 AM Jason Merrill <jason@redhat.com> wrote:
> The function "warning" returns bool to indicated whether or not any
> diagnostic was actually emitted; warn_deprecated_use should as well.
> It's also unnecessary to duplicate the warning code between the cases
> of null or non-null "decl", since the actual warnings were the same.
> The only thing that's different is whether we indicate the source
> location of "decl".
> Tested x86_64-pc-linux-gnu. OK for trunk?
OK.
Richard.
More information about the Gcc-patches
mailing list