delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/15/02:47:19

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Reply-To: <al DOT slater AT scluk DOT com>
From: "Al Slater" <al DOT slater AT scluk DOT com>
To: "'sam alexander'" <dreamvigile AT hotmail DOT com>, <cygwin AT cygwin DOT com>
Subject: RE: Useless compiler warning in GCC, how can i silence it?
Date: Fri, 15 Mar 2002 07:45:55 -0000
Message-ID: <000d01c1cbf5$70ec1270$458c0ca4@pavilion>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
In-Reply-To: <F219Hr4h1L2zztp8xqq00003289@hotmail.com>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal
X-MDRemoteIP: 164.12.140.69
X-Return-Path: al DOT slater AT scluk DOT com
X-MDaemon-Deliver-To: cygwin AT cygwin DOT com

use unsigned int x = 4294967294UL;
                               ^^

regards

Al
> -----Original Message-----
> From: cygwin-owner AT cygwin DOT com 
> [mailto:cygwin-owner AT cygwin DOT com]On Behalf
> Of sam alexander
> Sent: 15 March 2002 07:16
> To: cygwin AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019