I keep getting this warning warning: passing argument 1 of 'CGPathMoveToPoint' discards qualifiers from pointer target type
I am calling the function like this
const CGAffineTransform m = CGAffineTransformIdentity;
CGPathMoveToPoint(path, &m , nextPos.x, nextPos.y);
I already tried
CGPathMoveToPoint(path, NULL , nextPos.x, nextPos.y);
or
CGAffineTransform m = CGAffineTransformIdentity;
CGPathMoveToPoint(path, &m , nextPos.x, nextPos.y);
But i always get this error, how do i get rid of it?