mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
Fixed incorrect while loops for noreturn functions
Silences warnings "function declared 'noreturn' should not return [-Winvalid-noreturn]".
This commit is contained in:
parent
35bb623eac
commit
5036cb4734
1 changed files with 4 additions and 4 deletions
|
@ -52,7 +52,7 @@
|
|||
format: @"method %@ not implemented in %@(class)",
|
||||
selector ? (id)NSStringFromSelector(selector) : (id)@"(null)",
|
||||
NSStringFromClass(self)];
|
||||
while (0) ; // Does not return
|
||||
while (1) ; // Does not return
|
||||
}
|
||||
|
||||
- (NSComparisonResult) compare: (id)anObject
|
||||
|
@ -116,7 +116,7 @@
|
|||
format: @"[%@%c%@] not implemented",
|
||||
NSStringFromClass([self class]), c,
|
||||
aSel ? (id)NSStringFromSelector(aSel) : (id)@"(null)"];
|
||||
while (0) ; // Does not return
|
||||
while (1) ; // Does not return
|
||||
}
|
||||
|
||||
- (id) shouldNotImplement: (SEL)aSel
|
||||
|
@ -128,7 +128,7 @@
|
|||
format: @"[%@%c%@] should not be implemented",
|
||||
NSStringFromClass([self class]), c,
|
||||
aSel ? (id)NSStringFromSelector(aSel) : (id)@"(null)"];
|
||||
while (0) ; // Does not return
|
||||
while (1) ; // Does not return
|
||||
}
|
||||
|
||||
- (id) subclassResponsibility: (SEL)aSel
|
||||
|
@ -139,7 +139,7 @@
|
|||
format: @"[%@%c%@] should be overridden by subclass",
|
||||
NSStringFromClass([self class]), c,
|
||||
aSel ? (id)NSStringFromSelector(aSel) : (id)@"(null)"];
|
||||
while (0) ; // Does not return
|
||||
while (1) ; // Does not return
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue