Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Oct 1995 16:04:18 +0100 (MET)
From:      peter@citylink.dinoex.sub.org (Peter Much)
To:        bde@zeta.org.au (Bruce Evans)
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: modf.S (in libc.a): stack access fault
Message-ID:  <199510241504.QAA05680@citylink.dinoex.sub.org>
In-Reply-To: <199510230625.QAA15714@godzilla.zeta.org.au> from "Bruce Evans" at Oct 23, 95 04:25:25 pm

next in thread | previous in thread | raw e-mail | index | archive | help

> $ cc -Wall prog.c
> prog.c:4: warning: return-type defaults to `int'
> prog.c: In function `main':
> prog.c:12: warning: implicit declaration of function `modf'
> prog.c:18: warning: control reaches end of non-void function
> 
> `modf' is not declared and so the compiler has to assume that
> it returns `int'.  Since it actually returns double, the behaviour
> is undefined.

Oh well...
Next time i get stack access trobles, i will look for the most
possible explanation first...

thanks,
Peter



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510241504.QAA05680>