简体   繁体   中英

Unused variable warning in XCode 6

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

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM