Subject: Re: toolchain/22118: make won't compile with -Wcast-qual -Wstrict-prototypes and more
From: David Laight <firstname.lastname@example.org>
Date: 07/16/2003 21:34:02
On Wed, Jul 16, 2003 at 03:55:46PM -0400, der Mouse wrote:
> > int fubar;
> > extern void xyz(size_t);
> > xyz((size_t)fubar);
> > requires the cast to keep the compiler quiet,
> It does? Not in my experience. What warning do you get in its
> absence? From what compiler?
It might only be a lint bleat...
The fun starts with signed v unsigned and 32bit v 64bit.
I'm sure gcc can be forced into giving warnings for some of these.
It'll certainly complain about implicit 'narrowing' conversions.
David Laight: email@example.com