How to suppress the deprecation warning "dispatch_get_current_queue () is deprecated ... in iOS 6.0"?

So, the question is a substantive question - I want to get rid of this warning, which is very annoying.

Is there any way to silence him?

Note. I use dispatch_get_current_queue () only for debugging purposes.

+7
source share
1 answer

You can use the following code to suppress warnings.

#pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdeprecated-declarations" dispatch_get_current_queue() // your deprecated calling code #pragma clang diagnostic pop 
+28
source

All Articles