Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以问题是主题问题 - 我想摆脱这个非常烦人的警告。
有没有办法让它静音?
注意:我使用 dispatch_get_current_queue() 仅用于调试目的。
您可以使用以下代码来抑制警告。
#pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdeprecated-declarations" dispatch_get_current_queue() // your deprecated calling code #pragma clang diagnostic pop