This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]