From: "News Reader" Newsgroups: comp.os.msdos.djgpp Subject: Re: integer overflow Date: Tue, 29 Jul 2003 12:49:15 +0200 Organization: UTA/netway (Customer) Lines: 36 Message-ID: References: <3F246120 DOT 63C3753C AT worldnet DOT att DOT net> <3F24AA4B DOT 589D3482 AT worldnet DOT att DOT net> <7458-Mon28Jul2003184701+0300-eliz AT elta DOT co DOT il> <02cf01c35571$851e5990$0600000a AT broadpark DOT no> NNTP-Posting-Host: pat-ei.lucent.wellcom.at X-Trace: newsreader1.netway.at 1059475909 2920 195.230.174.18 (29 Jul 2003 10:51:49 GMT) X-Complaints-To: abuse AT netway DOT at NNTP-Posting-Date: 29 Jul 2003 10:51:49 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com _doprnt() gives me the picture, thanks. "Gisle Vanem" wrote in message news:02cf01c35571$851e5990$0600000a AT broadpark DOT no... > "News Reader" said: > > > Being human and therefore being prone to making mistakes > > from time to time, I will not allow any of my programs to run > > if the compiler output produces a single warning as a matter > > of principle. "-Wall" has saved me (and my programs) several > > times and this is the main reason why I still keep using C once > > in a while. > > Then you should add '-W' since '-Wall' doesn't warn about > all possibly erroneous code; like mixing signed and unsigned > types. > > > Compilation of your code produces the following output: > > > > x.c: In function `main': > > x.c:7: warning: unknown conversion type character `U' in format > > x.c:7: warning: too many arguments for format > > My guess is that gcc isn't updated on what djgpp's _doprnt > can accept as format-specifiers. It's the same with most gcc > ports; MingW's gcc warns about "%ws" being unknown, but it > works fine since MSVCRT.DLL handles he printing. > > --gv > >