1
0
forked from 0ad/0ad

Suppresses noisy clang/libc++ warnings from SpiderMonkey headers on OS X

This was SVN commit r15716.
This commit is contained in:
historic_bruno 2014-09-07 23:58:22 +00:00
parent 41b98a6f12
commit 3d1cd08a4c

View File

@ -51,6 +51,19 @@
# pragma GCC diagnostic ignored "-Wignored-qualifiers"
# endif
#endif
#if CLANG_VERSION
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wuninitialized"
# pragma clang diagnostic ignored "-Wc++11-extensions"
# pragma clang diagnostic ignored "-Wignored-qualifiers"
// Ugly hack to deal with macro redefinitions from libc++
# ifdef nullptr
# undef nullptr
# endif
# ifdef decltype
# undef decltype
# endif
#endif
#if MSC_VERSION
// warnings which are also disabled for the files that include this header
@ -75,6 +88,9 @@
#if MSC_VERSION
# pragma warning(pop)
#endif
#if CLANG_VERSION
# pragma clang diagnostic pop
#endif
#if GCC_VERSION >= 402
# pragma GCC diagnostic warning "-Wunused-parameter"
# pragma GCC diagnostic warning "-Wredundant-decls"