Index: src/OFNumber.m ================================================================== --- src/OFNumber.m +++ src/OFNumber.m @@ -64,11 +64,10 @@ return (t)value.float_; \ case OF_NUMBER_DOUBLE: \ return (t)value.double_; \ default: \ @throw [OFInvalidFormatException newWithClass: isa]; \ - return 0; /* Make gcc happy */ \ } #define CALCULATE(o) \ switch (type) { \ case OF_NUMBER_CHAR: \ value.char_ o; \ @@ -142,11 +141,10 @@ case OF_NUMBER_DOUBLE: \ value.double_ o; \ break; \ default: \ @throw [OFInvalidFormatException newWithClass: isa]; \ - break; \ } #define CALCULATE2(o, n) \ switch ([n type]) { \ case OF_NUMBER_CHAR: \ value.char_ o [n asChar]; \ @@ -220,11 +218,10 @@ case OF_NUMBER_DOUBLE: \ value.double_ o [n asDouble]; \ break; \ default: \ @throw [OFInvalidFormatException newWithClass: isa]; \ - break; \ } @implementation OFNumber + numberWithChar: (char)char_ { Index: src/OFObject.m ================================================================== --- src/OFObject.m +++ src/OFObject.m @@ -284,11 +284,10 @@ } } @throw [OFMemNotPartOfObjException newWithClass: isa andPointer: ptr]; - return NULL; /* never reached, but makes gcc happy */ } - (void*)resizeMem: (void*)ptr toNItems: (size_t)nitems ofSize: (size_t)size @@ -358,11 +357,10 @@ } } @throw [OFMemNotPartOfObjException newWithClass: isa andPointer: ptr]; - return self; /* never reached, but makes gcc happy */ } - retain { PRE_IVAR->retain_count++;