“Selectively Disable Warnings” with clang

I saw this demo done at WWDC on how to turn off warnings, only when truly warranted, while compiling with clang: #if defined (__clang__) #pragma clang diagnostic push #pragma clang diagnostic ignored “-Wunused-value” #endif // defined __clang__ void ImAUselessLittleFunction ( int pleaseUseMe ) { pleaseUseMe; // Nope, you are not going to be used } … Read more

Xcode 4

Xcode 4 has a lot of cool new features. One of my favorites is it’s ability to tell you when you introduced a bug in your code; the feature is similar to a spell check found in a word processor. Usually, these cool tools are only available for Objective-C, but because of LLVM, this feature … Read more