Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
strange "warning: operation on '...' may be undefined"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

strange "warning: operation on '...' may be undefined"


I'm trying to fix all my compile warnings, this is my last one and its got me stumped:

	"warning: operation on 'count' may be undefined"

The strange thing is the warning is only generated on the line shown below, while I am performing ++count elsewhere without generating a warning.

	This is in a .m file

CGPoint sampledPoints[size*2];
int count = 0;
sampledPoints[count].x = 0.0;
sampledPoints[count].y = (float)((buffer[0]*_size)/ _scale)+h/2;
sampledPoints[++count].x = 1 * xstep;
sampledPoints[count].y = (float)((buffer[1]*_size)/ _scale)+h/2;
UInt32 i;
for (i = 1; i < size; i+=_resolution){

sampledPoints[++count].x = sampledPoints[count-1].x; <<<<-- warning here

sampledPoints[count].y = sampledPoints[count-1].y;
sampledPoints[++count].x = (float)xstep * i;
sampledPoints[count].y = (float)((buffer[i]*_size)/ _scale)+h/2;

Any help much appreciated


_______________________________________________ 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

Visit the Apple Store online or at retail locations.

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.