Uhmm, this warning is a bug, or am I missing something?
Uhmm, this warning is a bug, or am I missing something?
- Subject: Uhmm, this warning is a bug, or am I missing something?
- From: Scott Ribe <email@hidden>
- Date: Thu, 26 Jan 2006 16:03:40 -0700
- Thread-topic: Uhmm, this warning is a bug, or am I missing something?
OK, I admit this function is nasty, but it's quick work while I figure out
how to handle this data:
static NSString * StringForInterval( const interval & val )
{
if( (val.startn != val.endn && val.startp == val.endp) && (val.endn != 0
|| val.endp != '\0') )
return [NSString stringWithFormat: @"%@ - %@",
StringForIntervalPart( val.startn, '\0' ),
StringForIntervalPart( val.endn, val.endp )];
else if( (val.startn != val.endn || val.startp != val.endp) && (val.endn
!= 0 || val.endp != '\0') )
return [NSString stringWithFormat: @"%@ - %@",
StringForIntervalPart( val.startn, val.startp ),
StringForIntervalPart( val.endn, val.endp )];
else
return StringForIntervalPart( val.startn, val.startp );
}
Then I call that function from within this method:
- (void) afterLoadSelf
{
matrixManager = [[ChargeMatrixController alloc] initWithMatrix:
chargeMtx forChargesFile: "charge sheet 01"];
[clinicDateTxt setStringValue:
[[NSDate date] descriptionWithCalendarFormat: @"%m/%d/%Y" timeZone:
nil locale: nil]];
[toBeSeenByCmb selectItemAtIndex: 0];
[self doClinicDate: self];
for( int i = 0; i < NUMINTERVALS; ++ i )
[periodPop addItemWithTitle: StringForInterval( intervals[i] )];
}
And the last line where StringForInterval is called gives this warning:
ClinicCheckOut_WC.mm:237: warning: control may reach end of non-void
function 'NSString* StringForInterval(const interval&)' being inlined
And my reaction is "no, in fact, StringForInterval will always return a
value". Am I missing something wrt to Objective-C???
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 665-7007 voice
_______________________________________________
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