diff options
author | Sage Weil <sage.weil@dreamhost.com> | 2012-01-29 21:05:08 -0800 |
---|---|---|
committer | Sage Weil <sage.weil@dreamhost.com> | 2012-01-29 21:08:02 -0800 |
commit | 60ead1eeab1638862a8a719bbfb3d1b0d30e8490 (patch) | |
tree | fbdb19240ff66113c18ea173f593aec6953371cf | |
parent | d3590b5edfaa6385ae207518aaa11af570bcd0eb (diff) | |
download | ceph-60ead1eeab1638862a8a719bbfb3d1b0d30e8490.tar.gz |
qa: encoding: silence warning
This is cheating, but we always use this class with int types, so it makes
this go away:
warning: test/encoding.cc:79:20: ‘*((void*)(& tu)+4).ConstructorCounter::data’ may be used uninitialized in this function [-Wuninitialized]
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
-rw-r--r-- | src/test/encoding.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/encoding.cc b/src/test/encoding.cc index 225e3312fd6..2662c240eaa 100644 --- a/src/test/encoding.cc +++ b/src/test/encoding.cc @@ -64,7 +64,7 @@ template <typename T> class ConstructorCounter { public: - ConstructorCounter() + ConstructorCounter() : data(0) { default_ctor++; } |