From: Jim Nance <jlnance@avanticorp.com>
Subject: Re: Compiler Warnings
Date: Mon, 20 Jan 1997 06:41:55 -0500 (EST) [thread overview]
Message-ID: <9701201141.AA16018@halfpint.rtp.avanticorp.com> (raw)
In-Reply-To: <199701180109.JAA03936@tapa.admu.edu.ph>
> "conversion from pointer to integer of different type."
>
> I guess this has to do with the fact that Alpha's pointers are
> 8 bytes but ints are 4 bytes only. Can I safely ignore these
> warnings (my machine is only 96MB anyway) or must I correct
> the ints to longs?
In general it is NOT safe to ignore warnings like these. These warnings
are usually caused by missing prototyes. For example you will get one
if you do something like:
char *str = fgets(buffer, sizeof(buffer), stdin);
and don't include string.h. The problem is that even though fgets()
returns a char*, if there is no prototype the compiler assumes that
it returns an int.
I don't know about Linux, but Digital Unix puts most things above 4G to
force a segmentation violation if you try something like this. I
suspect that Linux does too.
Jim
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next prev parent reply other threads:[~1997-01-20 11:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <199701180109.JAA03936@tapa.admu.edu.ph>
1997-01-18 16:22 ` Compiler Warnings Richard Henderson
1997-01-20 11:41 ` Jim Nance [this message]
2010-01-18 19:07 Roger
[not found] <199701181907.OAA07989@sable.cc.vt.edu>
1997-01-18 20:47 ` Michal Jaegermann
1997-01-18 21:31 ` Richard Henderson
-- strict thread matches above, loose matches on Subject: below --
1997-01-18 3:04 Roger
1997-01-18 17:27 ` Michal Jaegermann
1997-01-18 1:09 Pablo Manalastas
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