Skip to content
Snippets Groups Projects
Commit 9911646c authored by Chris Peterson's avatar Chris Peterson
Browse files

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

parent 4306af00
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -82,3 +82,6 @@ if CONFIG['MOZ_UPDATE_CHANNEL'] not in ('release') and \
FINAL_LIBRARY = 'xul'
include('/ipc/chromium/chromium-config.mozbuild')
if CONFIG['GNU_CXX']:
CXXFLAGS += ['-Wshadow']
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment