diff --git a/folly/FBString.h b/folly/FBString.h index 1f1e7b8dc9cc70d63b146b76a282a333bfcc29a3..3fd59ab4b1022fc4d9392939e5c9f99a21757376 100644 --- a/folly/FBString.h +++ b/folly/FBString.h @@ -236,6 +236,13 @@ private: }; */ +/** + * gcc-4.7 throws what appears to be some false positive uninitialized + * warnings for the members of the MediumLarge struct. So, mute them here. + */ +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wuninitialized" + /** * This is the core of the string. The code should work on 32- and * 64-bit architectures and with any Char size. Porting to big endian @@ -815,6 +822,8 @@ private: } }; +# pragma GCC diagnostic pop + #ifndef _LIBSTDCXX_FBSTRING /** * Dummy fbstring core that uses an actual std::string. This doesn't