Bug 1207031 - Suppress -Wshadow warnings from google-breakpad headers in xpcom/threads. r=froydnj

This commit is contained in:
Chris Peterson
2015-09-21 22:41:52 -07:00
parent c5657ec4e0
commit 82d3961d8f
2 changed files with 12 additions and 0 deletions

View File

@@ -22,6 +22,11 @@
#include "mozilla/MemoryChecking.h"
#include "mozilla/Snprintf.h"
#ifdef __GNUC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wshadow"
#endif
#if defined(MOZ_VALGRIND)
# include <valgrind/valgrind.h>
#endif
@@ -41,6 +46,10 @@
#include <sys/syscall.h>
#endif
#ifdef __GNUC__
# pragma GCC diagnostic pop // -Wshadow
#endif
#if defined(XP_LINUX) || defined(XP_MACOSX)
#include <pthread.h>
#endif