Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

So the question is the subject question - I want to get rid of this warning which is pretty annoying.

Is there a way to make it silent?

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

like image 890
Stanislav Pankevich Avatar asked Dec 28 '12 06:12

Stanislav Pankevich


1 Answers

You could use the following code to suppress the warnings.

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"

dispatch_get_current_queue() // your deprecated calling code

#pragma clang diagnostic pop
like image 180
Ilanchezhian Avatar answered Nov 09 '22 02:11

Ilanchezhian