I\'d like to add some macros to ease (un)setting a specific warning around routines that we are deprecating internally.
I\'d like to turn this:
#pragma c
You can use this solution:
#define NS_SUPPRESS_DIRECT_USE(expr) _Pragma("clang diagnostic push") \ _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"")\ expr\ _Pragma("clang diagnostic pop")
Then just add it:
NS_SUPPRESS_DIRECT_USE( Foo(); );