Add explicit return types to a couple of methods and __attribute__((unused)) to

some functions with empty bodies so people don't get compiler warnings from
importing AppKit.h



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35035 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Chisnall 2012-04-06 12:26:34 +00:00
parent 4efed91607
commit 4feae5ffce
3 changed files with 6 additions and 4 deletions

View file

@ -78,7 +78,7 @@
// NSCoding protocol
//
- (void)encodeWithCoder: (NSCoder *)aCoder;
- initWithCoder: (NSCoder *)aDecoder;
- (id)initWithCoder: (NSCoder *)aDecoder;
@end

View file

@ -152,7 +152,7 @@ typedef enum _NSPrinterTableStatus {
//
- (void) encodeWithCoder: (NSCoder*) aCoder;
- initWithCoder: (NSCoder*) aDecoder;
- (id)initWithCoder: (NSCoder*) aDecoder;
@end

View file

@ -420,13 +420,15 @@ PSsetrgbcolor(float r, float g, float b)
}
static inline void
PScountwindowlist(int d, int *c)
PScountwindowlist(int __attribute__((unused)) d, int __attribute__((unused)) *c)
{
// dummy implementation for now... GJC
}
static inline void
PSwindowlist(int d, int c, int *array)
PSwindowlist(int __attribute__((unused)) d,
int __attribute__((unused)) c,
int __attribute__((unused)) *array)
{
// dummy implementation for now... GJC
}