This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GDB 8.1 build error


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]