This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: Useless compiler warning in GCC, how can i silence it?
- From: "Al Slater" <al dot slater at scluk dot com>
- To: "'sam alexander'" <dreamvigile at hotmail dot com>,<cygwin at cygwin dot com>
- Date: Fri, 15 Mar 2002 07:45:55 -0000
- Subject: RE: Useless compiler warning in GCC, how can i silence it?
- Reply-to: <al dot slater at scluk dot com>
use unsigned int x = 4294967294UL;
^^
regards
Al
> -----Original Message-----
> From: cygwin-owner@cygwin.com
> [mailto:cygwin-owner@cygwin.com]On Behalf
> Of sam alexander
> Sent: 15 March 2002 07:16
> To: cygwin@cygwin.com
> Subject: Useless compiler warning in GCC, how can i silence it?
>
>
> Hi
>
> The useless compiler warning is this:
>
> warning: decimal constant is so large that it is unsigned
>
> I KNOW that it's unsigned, and it's supposed to be. It's the
> right hand
> side of an initialization like this:
>
> unsigned int x = 4294967294;
>
> I'd just ignore it as a minor annoyance, but my boss insists
> that I find a
> way to silence it (he doesn't know C himself).
>
> Thank you very much in advance. Please reply to my email as I'm not
> subscribed to the list... P.S. I already tried typecasting
> the large
> constant as an unsigned int, as if to tell the compiler that
> I was well
> aware it was too large to be signed, but that didn't help.
>
> Sam
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/