Should I use "#pragma GCC ..." or "#pragma clang ..." in Xcode

Viewed 2133

Which of these should I use to ignore a warning?

#pragma clang diagnostic ignored "-W<warning>"
#pragma GCC diagnostic ignored "-W<warning>"

Both seems to work for me, however which one is the correct to use?

Should I always use the one matching the compiler I'm using?

1 Answers
Related