This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: compiler warning about literal
- From: Luchezar Belev <lukcho at gmail dot com>
- To: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Mon, 17 Nov 2014 19:28:44 +0200
- Subject: Re: compiler warning about literal
- Authentication-results: sourceware.org; auth=none
- References: <CAJtzQrzpZeQ2uHvuaG4HJWdjaW-=FuEdchr1rcf3N3K-hqPxKw at mail dot gmail dot com> <CAJtzQrybp4PqHExVPGc4s2vcNBWmsv9ss_xPX6w6dZNr9_2DFA at mail dot gmail dot com> <20141117164953 dot GA14137 at opentech dot at> <CAJtzQrzHnh_=_UZ=-y=HZEBVQYgWFzGVzvUTLG6U_HVtxObfhQ at mail dot gmail dot com> <20141117170828 dot GA27808 at opentech dot at> <20141117171418 dot GA30462 at opentech dot at>
I think i got it why GCC gives the warning with -std=C90.
It basically wants to say:
"Now that we are under the C90 rules, this literal is 'unsigned long',
but under some newer standard it sould be 'signed long long', so make
sure your code won't broke if you try to compile it under new
standard".
Now the only question that remains is: why there is no way to disable
the warning?