Permalink
Browse files

Added warning flag -Wmissing-method-return-type and fixed resultant w…

…arnings: Method has no return type specified.
  • Loading branch information...
mugginsoft committed Nov 26, 2012
1 parent e09a74d commit 0435a9e9e34a73c1dab694fab0e19fe9d12c3719
Showing with 320 additions and 311 deletions.
  1. +14 −5 FScript.xcodeproj/project.pbxproj
  2. +11 −11 FScriptFramework/Array.m
  3. +2 −2 FScriptFramework/ArrayPrivate.h
  4. +2 −2 FScriptFramework/ArrayRep.h
  5. +6 −6 FScriptFramework/ArrayRepBoolean.h
  6. +6 −6 FScriptFramework/ArrayRepBoolean.m
  7. +8 −8 FScriptFramework/ArrayRepDouble.h
  8. +9 −9 FScriptFramework/ArrayRepDouble.m
  9. +2 −2 FScriptFramework/ArrayRepEmpty.h
  10. +5 −5 FScriptFramework/ArrayRepEmpty.m
  11. +2 −2 FScriptFramework/ArrayRepFetchRequest.h
  12. +2 −2 FScriptFramework/ArrayRepFetchRequest.m
  13. +8 −8 FScriptFramework/ArrayRepId.h
  14. +8 −8 FScriptFramework/ArrayRepId.m
  15. +7 −7 FScriptFramework/Array_fscript.h
  16. +9 −9 FScriptFramework/Block.m
  17. +3 −3 FScriptFramework/BlockInspector.h
  18. +3 −3 FScriptFramework/BlockInspector.m
  19. +1 −1 FScriptFramework/BlockPrivate.h
  20. +2 −2 FScriptFramework/BlockRep.h
  21. +2 −2 FScriptFramework/BlockRep.m
  22. +7 −7 FScriptFramework/Block_fscript.h
  23. +19 −19 FScriptFramework/CompiledCodeNode.h
  24. +19 −19 FScriptFramework/CompiledCodeNode.m
  25. +7 −7 FScriptFramework/FSArray.h
  26. +12 −12 FScriptFramework/FSArray.m
  27. +7 −7 FScriptFramework/FSBlock.h
  28. +10 −10 FScriptFramework/FSBlock.m
  29. +2 −2 FScriptFramework/FSBlockCompilationResult.h
  30. +2 −2 FScriptFramework/FSBlockCompilationResult.m
  31. +2 −2 FScriptFramework/FSBoolean.m
  32. +2 −2 FScriptFramework/FSBooleanPrivate.h
  33. +1 −1 FScriptFramework/FSCNBase.m
  34. +1 −1 FScriptFramework/FSClassDefinition.h
  35. +1 −1 FScriptFramework/FSClassDefinition.m
  36. +7 −7 FScriptFramework/FSCommandHistory.h
  37. +7 −7 FScriptFramework/FSCommandHistory.m
  38. +2 −2 FScriptFramework/FSCompilationResult.h
  39. +2 −2 FScriptFramework/FSCompilationResult.m
  40. +2 −2 FScriptFramework/FSCompiler.h
  41. +2 −2 FScriptFramework/FSCompiler.m
  42. +1 −1 FScriptFramework/FSConstantListBuilder.m
  43. +1 −1 FScriptFramework/FSCoreDataSample.h
  44. +1 −1 FScriptFramework/FSCoreDataSample.m
  45. +1 −1 FScriptFramework/FSExecEngine.m
  46. +1 −1 FScriptFramework/FSExecutor.h
  47. +2 −2 FScriptFramework/FSExecutor.m
  48. +2 −2 FScriptFramework/FSMethod.m
  49. +1 −1 FScriptFramework/FSMsgContext.h
  50. +1 −1 FScriptFramework/FSMsgContext.m
  51. +1 −1 FScriptFramework/FSNSArray.m
  52. +1 −1 FScriptFramework/FSNSDistantObject.m
  53. +1 −1 FScriptFramework/FSNSObject.h
  54. +2 −2 FScriptFramework/FSNSObject.m
  55. +1 −1 FScriptFramework/FSNSProxy.m
  56. +2 −2 FScriptFramework/FSNamedNumber.h
  57. +2 −2 FScriptFramework/FSNamedNumber.m
  58. +3 −3 FScriptFramework/FSNumber.h
  59. +6 −6 FScriptFramework/FSNumber.m
  60. +1 −1 FScriptFramework/FSObjectBrowserCell.m
  61. +2 −2 FScriptFramework/FSObjectBrowserMatrix.m
  62. +3 −3 FScriptFramework/FSPattern.h
  63. +3 −3 FScriptFramework/FSPattern.m
  64. +2 −2 FScriptFramework/FSReplacementForCoderForClass.h
  65. +2 −2 FScriptFramework/FSReplacementForCoderForClass.m
  66. +9 −9 FScriptFramework/FSSymbolTable.h
  67. +9 −9 FScriptFramework/FSSymbolTable.m
  68. +6 −6 FScriptFramework/FSSystem.h
  69. +6 −6 FScriptFramework/FSSystem.m
  70. +1 −1 FScriptFramework/FSTestObjCClass1.h
  71. +1 −1 FScriptFramework/FSTestObjCClass1.m
  72. +1 −1 FScriptFramework/FSTestObjCClass2.m
  73. +1 −1 FScriptFramework/FSVoid.h
  74. +1 −1 FScriptFramework/FSVoid.m
  75. +1 −1 FScriptFramework/FScriptTextView.m
  76. +1 −1 FScriptFramework/KTestManager.h
  77. +1 −1 FScriptFramework/KTestManager.m
  78. +1 −1 FScriptFramework/MessagePatternCodeNode.h
  79. +1 −1 FScriptFramework/MessagePatternCodeNode.m
  80. +6 −6 FScriptFramework/Number.m
  81. +3 −3 FScriptFramework/Number_fscript.h
  82. +1 −1 FScriptFramework/Space.h
  83. +1 −1 FScriptFramework/Space.m
@@ -3657,7 +3657,6 @@
PRODUCT_NAME = FScript;
SECTORDER_FLAGS = "";
SKIP_INSTALL = YES;
- WARNING_CFLAGS = "-Wmost";
WRAPPER_EXTENSION = framework;
ZERO_LINK = NO;
};
@@ -3694,7 +3693,6 @@
PRODUCT_NAME = FScript;
SECTORDER_FLAGS = "";
SKIP_INSTALL = YES;
- WARNING_CFLAGS = "-Wmost";
WRAPPER_EXTENSION = framework;
ZERO_LINK = NO;
};
@@ -3870,7 +3868,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_C_LANGUAGE_STANDARD = c99;
GCC_ENABLE_CPP_EXCEPTIONS = NO;
GCC_ENABLE_CPP_RTTI = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
@@ -3885,7 +3883,9 @@
GCC_WARN_EFFECTIVE_CPLUSPLUS_VIOLATIONS = YES;
GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES;
GCC_WARN_MISSING_PARENTHESES = NO;
+ GCC_WARN_SHADOW = NO;
GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES;
+ GCC_WARN_UNDECLARED_SELECTOR = NO;
GCC_WARN_UNUSED_LABEL = YES;
GCC_WARN_UNUSED_PARAMETER = NO;
GCC_WARN_UNUSED_VALUE = YES;
@@ -3894,7 +3894,10 @@
MACOSX_DEPLOYMENT_TARGET = 10.6;
OTHER_LDFLAGS = "";
SDKROOT = macosx;
- WARNING_CFLAGS = "-Wmost";
+ WARNING_CFLAGS = (
+ "-Wmost",
+ "-Wmissing-method-return-type",
+ );
ZERO_LINK = NO;
};
name = Debug;
@@ -3904,7 +3907,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_C_LANGUAGE_STANDARD = c99;
GCC_ENABLE_CPP_EXCEPTIONS = NO;
GCC_ENABLE_CPP_RTTI = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
@@ -3913,11 +3916,17 @@
GCC_MODEL_TUNING = "";
GCC_OPTIMIZATION_LEVEL = s;
GCC_VERSION = "";
+ GCC_WARN_SHADOW = NO;
+ GCC_WARN_UNDECLARED_SELECTOR = NO;
IBC_FLATTEN_NIBS = NO;
INSTALL_OWNER = "$(inherited)";
MACOSX_DEPLOYMENT_TARGET = 10.6;
OTHER_LDFLAGS = "";
SDKROOT = macosx;
+ WARNING_CFLAGS = (
+ "-Wmost",
+ "-Wmissing-method-return-type",
+ );
};
name = Release;
};
View
@@ -163,9 +163,9 @@ - (BOOL)containsObject:(id)anObject
assert(0);
}
-- copy { assert(0); }
+- (id)copy { assert(0); }
-- copyWithZone:(NSZone *)zone { assert(0); }
+- (id)copyWithZone:(NSZone *)zone { assert(0); }
- (NSUInteger)count
{
@@ -252,32 +252,32 @@ - (NSUInteger)indexOfObjectIdenticalTo:(id)anObject inRange:(NSRange)range
assert(0);
}
-- init
+- (id)init
{
assert(0);
}
-- initFrom:(NSUInteger)from to:(NSUInteger)to step:(NSUInteger)step
+- (id)initFrom:(NSUInteger)from to:(NSUInteger)to step:(NSUInteger)step
{
assert(0);
}
-- initFilledWith:(id)elem count:(NSUInteger)nb
+- (id)initFilledWith:(id)elem count:(NSUInteger)nb
{
assert(0);
}
-- initWithCapacity:(NSUInteger)aNumItems
+- (id)initWithCapacity:(NSUInteger)aNumItems
{
assert(0);
}
-- initWithObject:(id)object
+- (id)initWithObject:(id)object
{
assert(0);
}
-- initWithObjects:(id *)objects count:(NSUInteger)nb
+- (id)initWithObjects:(id *)objects count:(NSUInteger)nb
{
assert(0);
}
@@ -302,12 +302,12 @@ - (BOOL) isEqualToArray:(NSArray *)anArray
assert(0);
}
-- mutableCopyWithZone:(NSZone *)zone
+- (id)mutableCopyWithZone:(NSZone *)zone
{
assert(0);
}
-- objectAtIndex:(NSUInteger)index
+- (id)objectAtIndex:(NSUInteger)index
{
assert(0);
}
@@ -373,7 +373,7 @@ - (enum ArrayRepType)type { assert(0); } // declared in ArrayPrivate
-(NSUInteger) _ul_count { assert(0); }
-- _ul_objectAtIndex:(NSUInteger)index
+- (id)_ul_objectAtIndex:(NSUInteger)index
{
assert(0);
}
@@ -15,8 +15,8 @@
- (id)arrayRep;
- (void)becomeArrayOfId;
- (void *)dataPtr;
-- initFrom:(NSUInteger)from to:(NSUInteger)to step:(NSUInteger)step;
-- initFilledWith:(id)elem count:(NSUInteger)nb;
+- (id)initFrom:(NSUInteger)from to:(NSUInteger)to step:(NSUInteger)step;
+- (id)initFilledWith:(id)elem count:(NSUInteger)nb;
- (FSArray *)initWithRep:(id)theRep;
- (FSArray *)initWithRepNoRetain:(id)theRep;
- (enum ArrayRepType)type;
@@ -18,8 +18,8 @@
- (NSString *)descriptionLimited:(NSUInteger)nbElem;
- (FSArray *) distinctId;
- (NSUInteger)indexOfObject:(id)anObject inRange:(NSRange)range identical:(BOOL)identical;
-- indexWithArray:(FSArray *)index;
-- (id)operator_backslash:(FSBlock*)bl; // precond: ![bl isProxy] && count != 0
+- (id)indexWithArray:(FSArray *)index;
+- (id)operator_backslash:(FSBlock*)bl; // precond: ![bl isProxy] && count != 0
- (void)removeLastElem;
- (void)removeElemAtIndex:(NSUInteger)index;
- (FSArray *)replicateWithArray:(FSArray *)operand;
@@ -17,12 +17,12 @@
- (void)addBoolean:(char)aBoolean;
- (char *)booleansPtr;
- (NSUInteger)indexOfObject:(id)anObject inRange:(NSRange)range identical:(BOOL)identical;
-- init;
-- initFilledWithBoolean:(char)elem count:(NSUInteger)nb; // contract: a return value of nil means not enough memory
-- initWithCapacity:(NSUInteger)aNumItems; // contract: a return value of nil means not enough memory
-- initWithBooleans:(char *)elems count:(NSUInteger)nb;
-- initWithBooleansNoCopy:(char *)tab count:(NSUInteger)nb;
-- copyWithZone:(NSZone *)zone;
+- (id)init;
+- (id)initFilledWithBoolean:(char)elem count:(NSUInteger)nb; // contract: a return value of nil means not enough memory
+- (id)initWithCapacity:(NSUInteger)aNumItems; // contract: a return value of nil means not enough memory
+- (id)initWithBooleans:(char *)elems count:(NSUInteger)nb;
+- (id)initWithBooleansNoCopy:(char *)tab count:(NSUInteger)nb;
+- (id)copyWithZone:(NSZone *)zone;
- (void)replaceBooleanAtIndex:(NSUInteger)index withBoolean:(char)aBoolean;
- (enum ArrayRepType)repType;
@@ -184,7 +184,7 @@ - (ArrayRepId *) asArrayRepId
- (char *)booleansPtr {return t;}
-- copyWithZone:(NSZone *)zone
+- (id)copyWithZone:(NSZone *)zone
{
return [[ArrayRepBoolean allocWithZone:zone] initWithBooleans:t count:count];
}
@@ -220,9 +220,9 @@ - (NSUInteger)indexOfObject:(id)anObject inRange:(NSRange)range identical:(BOOL)
}
}
-- init { return [self initWithCapacity:0]; }
+- (id)init { return [self initWithCapacity:0]; }
-- initFilledWithBoolean:(char)elem count:(NSUInteger)nb // contract: a return value of nil means not enough memory
+- (id)initFilledWithBoolean:(char)elem count:(NSUInteger)nb // contract: a return value of nil means not enough memory
{
if (self = [self initWithCapacity:nb])
{
@@ -232,7 +232,7 @@ - (NSUInteger)indexOfObject:(id)anObject inRange:(NSRange)range identical:(BOOL)
return nil;
}
-- initWithCapacity:(NSUInteger)aNumItems // contract: a return value of nil means not enough memory
+- (id)initWithCapacity:(NSUInteger)aNumItems // contract: a return value of nil means not enough memory
{
if ((self = [super init]))
{
@@ -250,7 +250,7 @@ - (NSUInteger)indexOfObject:(id)anObject inRange:(NSRange)range identical:(BOOL)
return nil;
}
-- initWithBooleans:(char *)elems count:(NSUInteger)nb
+- (id)initWithBooleans:(char *)elems count:(NSUInteger)nb
{
if (self = [self initWithCapacity:nb])
{
@@ -261,7 +261,7 @@ - (NSUInteger)indexOfObject:(id)anObject inRange:(NSRange)range identical:(BOOL)
return nil;
}
-- initWithBooleansNoCopy:(char *)tab count:(NSUInteger)nb
+- (id)initWithBooleansNoCopy:(char *)tab count:(NSUInteger)nb
{
if ((self = [super init]))
{
@@ -14,20 +14,20 @@
}
-+ arrayRepDoubleWithCapacity:(NSUInteger)aNumItems;
++ (id)arrayRepDoubleWithCapacity:(NSUInteger)aNumItems;
- (void)addDouble:(double)aDouble;
- (void)addDoublesFromFSArray:(FSArray *)otherArray;
- (NSString *)descriptionLimited:(NSUInteger)nbElem;
- (NSUInteger)indexOfObject:(id)anObject inRange:(NSRange)range identical:(BOOL)identical;
-- init;
-- initFilledWithDouble:(double)elem count:(NSUInteger)nb; // contract: a return value of nil means not enough memory
-- initFrom:(NSUInteger)from to:(NSUInteger)to step:(NSUInteger)step; // contract: a return value of nil means not enough memory
-- initWithCapacity:(NSUInteger)aNumItems; // contract: a return value of nil means not enough memory
-- initWithDoubles:(double *)elems count:(NSUInteger)nb;
-- initWithDoublesNoCopy:(double *)tab count:(NSUInteger)nb;
+- (id)init;
+- (id)initFilledWithDouble:(double)elem count:(NSUInteger)nb; // contract: a return value of nil means not enough memory
+- (id)initFrom:(NSUInteger)from to:(NSUInteger)to step:(NSUInteger)step; // contract: a return value of nil means not enough memory
+- (id)initWithCapacity:(NSUInteger)aNumItems; // contract: a return value of nil means not enough memory
+- (id)initWithDoubles:(double *)elems count:(NSUInteger)nb;
+- (id)initWithDoublesNoCopy:(double *)tab count:(NSUInteger)nb;
- (void)insertDouble:(double)aDouble atIndex:(NSUInteger)index;
-- copyWithZone:(NSZone *)zone;
+- (id)copyWithZone:(NSZone *)zone;
- (double *)doublesPtr;
- (void)replaceDoubleAtIndex:(NSUInteger)index withDouble:(double)aDouble;
- (enum ArrayRepType)repType;
@@ -894,7 +894,7 @@ - (FSArray *)simpleLoop_truncated
/////////////////////////////// OTHER METHODS //////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
-+ arrayRepDoubleWithCapacity:(NSUInteger)aNumItems
++ (id)arrayRepDoubleWithCapacity:(NSUInteger)aNumItems
{
return [[[self alloc] initWithCapacity:aNumItems] autorelease];
}
@@ -938,7 +938,7 @@ - (ArrayRepId *) asArrayRepId
return r;
}
-- copyWithZone:(NSZone *)zone
+- (id)copyWithZone:(NSZone *)zone
{
return [[ArrayRepDouble allocWithZone:zone] initWithDoubles:t count:count];
}
@@ -987,7 +987,7 @@ - (NSString *)descriptionLimited:(NSUInteger)nbElem
return str;
}
-- indexWithArray:(FSArray *)index
+- (id)indexWithArray:(FSArray *)index
{
assert(![index isProxy]);
@@ -1121,9 +1121,9 @@ - (NSString *)descriptionLimited:(NSUInteger)nbElem
return nil; //W
}
-- init { return [self initWithCapacity:0]; }
+- (id)init { return [self initWithCapacity:0]; }
-- initFilledWithDouble:(double)elem count:(NSUInteger)nb // contract: a return value of nil means not enough memory
+- (id)initFilledWithDouble:(double)elem count:(NSUInteger)nb // contract: a return value of nil means not enough memory
{
if (self = [self initWithCapacity:nb])
{
@@ -1133,7 +1133,7 @@ - (NSString *)descriptionLimited:(NSUInteger)nbElem
return nil;
}
-- initFrom:(NSUInteger)from to:(NSUInteger)to step:(NSUInteger)step // contract: a return value of nil means not enough memory
+- (id)initFrom:(NSUInteger)from to:(NSUInteger)to step:(NSUInteger)step // contract: a return value of nil means not enough memory
{
if (to < from) return [self init];
@@ -1153,7 +1153,7 @@ - (NSString *)descriptionLimited:(NSUInteger)nbElem
return nil;
}
-- initWithCapacity:(NSUInteger)aNumItems // contract: a return value of nil means not enough memory
+- (id)initWithCapacity:(NSUInteger)aNumItems // contract: a return value of nil means not enough memory
{
if (self = [super init])
{
@@ -1171,7 +1171,7 @@ - (NSString *)descriptionLimited:(NSUInteger)nbElem
return nil;
}
-- initWithDoubles:(double *)elems count:(NSUInteger)nb
+- (id)initWithDoubles:(double *)elems count:(NSUInteger)nb
{
if ((self = [self initWithCapacity:nb]))
{
@@ -1182,7 +1182,7 @@ - (NSString *)descriptionLimited:(NSUInteger)nbElem
return nil;
}
-- initWithDoublesNoCopy:(double *)tab count:(NSUInteger)nb
+- (id)initWithDoublesNoCopy:(double *)tab count:(NSUInteger)nb
{
if ((self = [super init]))
{
@@ -22,7 +22,7 @@
- (ArrayRepDouble *) asArrayRepDouble;
- (ArrayRepBoolean *) asArrayRepBoolean;
-- init;
-- initWithCapacity:(NSUInteger)aNumItems;
+- (id)init;
+- (id)initWithCapacity:(NSUInteger)aNumItems;
@end
@@ -28,7 +28,7 @@ - (FSArray *)sort {return [FSArray array];}
/////////////////////////////// OTHER METHODS //////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
-+ arrayRepEmptyWithCapacity:(NSUInteger)aNumItems
++ (id)arrayRepEmptyWithCapacity:(NSUInteger)aNumItems
{
return [[[self alloc] initWithCapacity:aNumItems] autorelease];
}
@@ -47,7 +47,7 @@ - (ArrayRepDouble *) asArrayRepDouble { return [[[ArrayRepDouble alloc] initWi
- (ArrayRepId *) asArrayRepId { return [[[ArrayRepId alloc] initWithCapacity:capacity] autorelease]; }
-- copyWithZone:(NSZone *)zone
+- (id)copyWithZone:(NSZone *)zone
{
return [[ArrayRepEmpty allocWithZone:zone] initWithCapacity:capacity];
}
@@ -56,11 +56,11 @@ - (NSUInteger)count {return 0;}
- (NSString *)descriptionLimited:(NSUInteger)nbElem { return @"{}" ; }
-- indexWithArray:(FSArray *)index {return [FSArray array];}
+- (id)indexWithArray:(FSArray *)index {return [FSArray array];}
-- init { return [self initWithCapacity:0]; }
+- (id)init { return [self initWithCapacity:0]; }
-- initWithCapacity:(NSUInteger)aNumItems
+- (id)initWithCapacity:(NSUInteger)aNumItems
{
if ((self = [super init]))
{
@@ -14,9 +14,9 @@
+ (ArrayRepFetchRequest *) arrayRepFetchRequestWithFetchRequest:(NSFetchRequest *)theFetchRequest objectContext:(NSManagedObjectContext *)theObjectContext;
- (ArrayRepId *) asArrayRepId;
-- copyWithZone:(NSZone *)zone;
+- (id)copyWithZone:(NSZone *)zone;
- (void)dealloc;
-- initWithFetchRequest:(NSFetchRequest *)theFetchRequest objectContext:(NSManagedObjectContext *)theObjectContext;
+- (id)initWithFetchRequest:(NSFetchRequest *)theFetchRequest objectContext:(NSManagedObjectContext *)theObjectContext;
- (enum ArrayRepType) repType;
@end
Oops, something went wrong.

0 comments on commit 0435a9e

Please sign in to comment.