From b6491ceb13129ece73928212b7c4e9ba6dba4620 Mon Sep 17 00:00:00 2001 From: theraven Date: Fri, 6 Apr 2012 12:26:34 +0000 Subject: [PATCH] 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 --- Headers/AppKit/NSColorWell.h | 2 +- Headers/AppKit/NSPrinter.h | 2 +- Headers/AppKit/PSOperators.h | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Headers/AppKit/NSColorWell.h b/Headers/AppKit/NSColorWell.h index 59fe6abb7..05d34c1f6 100644 --- a/Headers/AppKit/NSColorWell.h +++ b/Headers/AppKit/NSColorWell.h @@ -78,7 +78,7 @@ // NSCoding protocol // - (void)encodeWithCoder: (NSCoder *)aCoder; -- initWithCoder: (NSCoder *)aDecoder; +- (id)initWithCoder: (NSCoder *)aDecoder; @end diff --git a/Headers/AppKit/NSPrinter.h b/Headers/AppKit/NSPrinter.h index 9b91d6c03..3749852fb 100644 --- a/Headers/AppKit/NSPrinter.h +++ b/Headers/AppKit/NSPrinter.h @@ -152,7 +152,7 @@ typedef enum _NSPrinterTableStatus { // - (void) encodeWithCoder: (NSCoder*) aCoder; -- initWithCoder: (NSCoder*) aDecoder; +- (id)initWithCoder: (NSCoder*) aDecoder; @end diff --git a/Headers/AppKit/PSOperators.h b/Headers/AppKit/PSOperators.h index 7148a0d34..d98c752a9 100644 --- a/Headers/AppKit/PSOperators.h +++ b/Headers/AppKit/PSOperators.h @@ -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 }