This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
RE: Patch to enable libgcj.dll for MinGW
- From: Danny Smith <dannysmith at clear dot net dot nz>
- To: tj at laurenzo dot org, 'Andrew Haley' <aph at redhat dot com>
- Cc: 'Danny Smith' <dannysmith at users dot sourceforge dot net>, 'GCJ' <java at gcc dot gnu dot org>,'Ranjit Mathew' <rmathew at gmail dot com>
- Date: Fri, 09 Sep 2005 15:30:58 +1200
- Subject: RE: Patch to enable libgcj.dll for MinGW
> -----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
>