[PATCH] gdb: ignore -Wregister instead of -Wdeprecated-register

Simon Marchi simon.marchi@efficios.com
Mon Mar 11 17:51:11 GMT 2024


On 3/11/24 13:49, Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi <simon.marchi@efficios.com> writes:
> 
> Simon> In ada-lex.l, we already use `DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER`,
> Simon> which for Clang translates to ignoring `-Wdeprecated-register` [1].  I think
> Simon> that was produced when compiling as C++11, but now that we always compile as
> Simon> C++17, Clang produces a `-Wregister` error [2].
> 
> Can we just '#define register' in this file or somewhere nearby?

We probably can, but ignoring the diagnostic seems safer and less hacky
to me.

Simon


More information about the Binutils mailing list