diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-05-31 16:15:03 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-05-23 13:31:33 +0200 |
commit | 4663fb7de855df66f5ff444c5cea6558fe4f6272 (patch) | |
tree | 50321eb47fb044ee011a4bb3174b275d53de56a1 | |
parent | 257ebc02d1f85a3a3d92fc6b634e1892f81d95dd (diff) |
Silence gcc -Waddress warnings in logging.h
We were getting too many of these, poisoning our compile output.
Change-Id: Ic7e41e2bb538bf69a873e32217f87fd369317a20
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r-- | chromium/base/logging.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chromium/base/logging.h b/chromium/base/logging.h index 1b97a4ab2ba..e7bf2e1920f 100644 --- a/chromium/base/logging.h +++ b/chromium/base/logging.h @@ -681,6 +681,11 @@ class CheckOpResult { #endif // !(OFFICIAL_BUILD && NDEBUG) +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Waddress" +#endif // __GNUC__ + // This formats a value for a failing CHECK_XX statement. Ordinarily, // it uses the definition for operator<<, with a few special cases below. template <typename T> @@ -716,6 +721,10 @@ MakeCheckOpValueString(std::ostream* os, const T& v) { (*os) << static_cast<typename std::underlying_type<T>::type>(v); } +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif + // We need an explicit overload for std::nullptr_t. BASE_EXPORT void MakeCheckOpValueString(std::ostream* os, std::nullptr_t p); |