用于将-Werror
所有警告视为错误,我不想抑制已弃用的声明警告:
#pragma clang diagnostic push
#pragma clang diagnostic ignore "-Wdeprecated-declarations"
SKPayment *myPayment = [SKPayment paymentWithProductIdentifier:completeName];
[[SKPaymentQueue defaultQueue] addPayment:myPayment];
#pragma clang diagnostic pop
怎么做 ?