Re: GDB 8.1 build error

Pedro Alves <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.