Re: GDB 8.1 build error

Pedro Alves
2018-04-27T20:24:31Z

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