Fix warnings occurring with gcc 4.3
Christian Thalinger
Christian.Thalinger at Sun.COM
Thu Feb 5 01:41:40 PST 2009
On Wed, 2009-02-04 at 11:45 +1000, David Holmes - Sun Microsystems
wrote:
> Xiaobin Lu said the following on 02/04/09 11:20:
> > I think the right way to fix this is to define _lineno as "int" and fix
> > line 309 of vmError.cpp to use "%d" for _lineno instead of "SIZE_FORMAT"
> > (which is why I thought to use size_t for _lineno).
>
> I agree - revert to int and %d.
I will fix this as of 6778669 if that's okay.
> I guess the compiler isn't that good at detecting problems with format
> specifiers. It also seems to have missed this at line 423:
>
> st->print(", free space=%dk",
> ((intptr_t)fr.sp() - (intptr_t)stack_bottom) >> 10);
And this one too.
-- Christian
More information about the hotspot-dev
mailing list