warning: control reaches end of non-void function when using @synchronized
warning: control reaches end of non-void function when using @synchronized
- Subject: warning: control reaches end of non-void function when using @synchronized
- From: "Shawn Erickson" <email@hidden>
- Date: Thu, 7 Sep 2006 10:17:35 -0700
(...finally getting time to look into some minor issues I ran into
over the last few months, anyway...)
I use @synchronized in Objective-C++ built with Xcode 2.3 (using
ggc-4.0 [1] and have objective-c exceptions enabled) and I get
"warning: control reaches end of non-void function" when I specify
-Wall for the following code.
- (BlahParticipant*) getFirstOrganizer
{
@synchronized (self) {
return [[firstOrganizer copy] autorelease];
}
}
I may be thinking to much like Java but this seems like an incorrect
warning... I will file a defect shortly unless folks point out an
issue with the code.
-Shawn
[1] gcc version 4.0.1 (Apple Computer, Inc. build 5341)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden