Re: RFA (tree.c): PATCH to make warn_deprecated_use return bool

2018-05-16 Thread Richard Biener
On Wed, May 16, 2018 at 3:01 AM Jason Merrill 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

RFA (tree.c): PATCH to make warn_deprecated_use return bool

2018-05-15 Thread Jason Merrill
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