Tag: MacOS

“Selectively Disable Warnings” with clang

Jaime 2012-04-04 No Comments Coding , , ,

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 } […]

Page 1 of 2