1
0
forked from 0ad/0ad

Disables some SpiderMonkey-related build warnings with clang

This was SVN commit r16379.
This commit is contained in:
historic_bruno 2015-02-22 21:15:47 +00:00
parent 8bf1fe1437
commit 1ac24adde2
2 changed files with 8 additions and 0 deletions

View File

@ -31,6 +31,10 @@
# pragma GCC diagnostic ignored "-Wredundant-decls"
# pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
#endif
#if CLANG_VERSION
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wmismatched-tags"
#endif
#if MSC_VERSION
// reduce the warning level for the SpiderMonkey headers
# pragma warning(push, 1)
@ -51,6 +55,9 @@
#if MSC_VERSION
# pragma warning(pop)
#endif
#if CLANG_VERSION
# pragma clang diagnostic pop
#endif
#if GCC_VERSION
# pragma GCC diagnostic pop
#endif

View File

@ -51,6 +51,7 @@
# pragma clang diagnostic ignored "-Wuninitialized"
# pragma clang diagnostic ignored "-Wc++11-extensions"
# pragma clang diagnostic ignored "-Wignored-qualifiers"
# pragma clang diagnostic ignored "-Wmismatched-tags"
// Ugly hack to deal with macro redefinitions from libc++
# ifdef nullptr
# undef nullptr