Unused variable warning in XCode 6

502 Views Asked by At

I see this warning while compiling within the Mixpanel framework used in my project.

Strange warning in XCode 6

It was not showing when I compiled some moment back. Is it a bug in XCode 6? How the variable k is unused here?

1

There are 1 best solutions below

2
On BEST ANSWER

You must be compiling with the constant NS_BLOCK_ASSERTIONS set, so those NSAssert() statements are disabled.

From the documentation:

Assertions are disabled if the preprocessor macro NS_BLOCK_ASSERTIONS is defined.