From: David Mosberger-Tang <davidm@AZStarNet.com>
Subject: Re: ELF/Shared Libs is GREAT! :)
Date: Fri, 16 Aug 1996 10:45:55 -0700 [thread overview]
Message-ID: <199608161745.KAA23542@panda.azstarnet.com> (raw)
>>>>> On Fri, 16 Aug 1996 13:43:37 -0400 (EDT), Janos J Krezgy <janos@ns.ncsa.com> said:
Janos> I'm forever getting "warning: cast to integer from pointer of
Janos> different size" around malloc calls... things _seem_ to be
Janos> ok, but I've tried casting things all manner of ways to no
Janos> avail...
Pointers are 64 bits on the Alpha and C defines that implicitly
declared functions default to return an `int', which is 32 bits only.
Just include <stdlib.h> and the warnings will disappear (no casts at
all are needed with a __STDC__ compiler).
It is always a good idea to compile with gcc -Wall---it will help you
discover many bugs. In the above case, gcc would have printed a
warning that there was no declaration for malloc() etc.
--david
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
next reply other threads:[~1996-08-16 17:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-08-16 17:45 David Mosberger-Tang [this message]
-- strict thread matches above, loose matches on Subject: below --
1996-08-16 17:07 ELF/Shared Libs is GREAT! :) David Mosberger-Tang
1996-08-16 16:50 Scott Call
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox