GDB 8.1 build error
Pedro Alves
palves@redhat.com
Fri Apr 27 20:41:00 GMT 2018
On 04/27/2018 09:16 PM, Simon Marchi wrote:
> On clang at least, -Wnarrowing seems to generate an error by default, so -w doesn't affect it. You get:
>
> Â no flag: error
> Â -Wno-error=narrowing: warning
> Â -Wno-error=narrowing -w: silent
>
> So in this case, we would still need either -Wno-error=narrowing or -Wno-narrowing.
>
> We can test if gcc behaves the same, we just need something that is an error by default but we can downgrade to a warning. Do you have an idea of such diagnostic?
-Wnarrowing is on by default on gcc, and -w disables it.
Thanks,
Pedro Alves
More information about the Gdb
mailing list