Patch to enable libgcj.dll for MinGW
Danny Smith
dannysmith@clear.net.nz
Fri Sep 9 08:27:00 GMT 2005
> -----Original Message-----
> From: TJ Laurenzo
> Sent: Friday, September 09, 2005 11:40 AM
>>> Could one of you provide some guidance on the preferred way
> to do this? gjavah.c is part of the bootstrap sequence.
> When bootstrapping, the build treats any warnings as errors,
> so we can't have any unused functions. My original patch
> which removed all of this stuff built properly because
> everything was removed. However, if I just do an #ifdef ...
> around some of the code we are going to have at least one
> unused function and thus a compile error during bootstrap. I
> could obviously put the same ifdef in multiple places, but
> that gets ugly. Should I break the check out into a function
> "int is_not_pe_coff()" and use that in a normal if statement
> to isolate the behavior in question?
ATTRIBUTE_UNUSED on function prototypes is the simplest way to get rid
of unused warnings
Danny
>> Thanks.
> TJ
>
More information about the Java
mailing list