delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/10/28/18:49:47

From: colin AT fu DOT is DOT saga-u DOT ac DOT jp (Colin Peters)
Subject: RE: gcc/libc bug with call to atof() (Win95)
28 Oct 1998 18:49:47 -0800 :
Message-ID: <006901be0250$cf04f380$fa173185.cygnus.gnu-win32@gbird0.fu.is.saga-u.ac.jp>
Mime-Version: 1.0
To: "Martin Hansen" <m DOT hansen AT widex DOT com>
Cc: "GNU-win32" <gnu-win32 AT cygnus DOT com>

Martin Hansen <m DOT hansen AT widex DOT com> wrote:
>in my version of gnu-win32 I encounter the following bug with
>gcc/libc.

[snip: bad results from a function returning double when not prototyped]

Compile with -Wall to turn on all warnings. For some reason by default gcc
does not complain about the implicit prototyping of a function, which
amounts to assuming that the function returns int. Turning on all warnings
will tell you about it (but it will still compile).

- Colin Peters - colin at fu.is.saga-u.ac.jp
- http://www.geocities.com/Tokyo/Towers/6162/index.html
- Go not to usenet for counsel, for it will say both
- 'yes' and 'no' and 'try another newsgroup'.


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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