This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: GCC 8.1: alloc-size-larger-than warnings during operator new[]


On Sun, 2018-05-13 at 15:53 -0400, Paul Smith wrote:
> The first problem is that I have three instances (in a very large
> codebase) where I'm seeing errors like this:
> 
>   error: argument 1 value '18446744073709551615' exceeds maximum object
> size 9223372036854775807 [-Werror=alloc-size-larger-than=]
> 
> ...
> 
> I can disable this warning

Err... no I can't?  Isn't there some way to keep -Wall but disable
-Walloc-size-larger-than?  -Wno-alloc-size-larger-than is unrecognized
and -Walloc-size-larger-than=0 doesn't disable it...

??


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