Commit cedbb3d0 authored by Andrew Gallagher's avatar Andrew Gallagher Committed by Tudor Bosman

fbstring: mute uninitialized warnings in fbstring code

Summary:
fbstring generates some apparently false positive uninitialized warnings
under gcc-4.7.1.  This diff disables the '-Wuninitialized' flag for
fbstring.

Test Plan: build

Reviewed By: ldemailly@fb.com

FB internal diff: D542722
parent 66415838
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment