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.
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