diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-06-15 19:59:16 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-06-15 19:59:16 +0000 |
commit | d1804db9664f377529713d681b81ec847fc5d060 (patch) | |
tree | 4632960b48f468a2d6ecec6531b803492d985eea /libcxxabi/test/catch_member_data_pointer_01.pass.cpp | |
parent | 567b755b7c2ee69deecd02477e32b8696045fee5 (diff) | |
download | bcm5719-llvm-d1804db9664f377529713d681b81ec847fc5d060.tar.gz bcm5719-llvm-d1804db9664f377529713d681b81ec847fc5d060.zip |
Fix [libcxxabi] Fix warning about uninitialized const member.
llvm-svn: 272824
Diffstat (limited to 'libcxxabi/test/catch_member_data_pointer_01.pass.cpp')
-rw-r--r-- | libcxxabi/test/catch_member_data_pointer_01.pass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxxabi/test/catch_member_data_pointer_01.pass.cpp b/libcxxabi/test/catch_member_data_pointer_01.pass.cpp index 0a1e7b36864..e7a2ea286b6 100644 --- a/libcxxabi/test/catch_member_data_pointer_01.pass.cpp +++ b/libcxxabi/test/catch_member_data_pointer_01.pass.cpp @@ -13,6 +13,7 @@ struct A { + A() : i(0), j(0) {} // explicitly initialize 'i' to prevent warnings const int i; int j; }; @@ -22,7 +23,7 @@ typedef int A::*md2; struct B : public A { - B() : k(42), l(0) {} // explicitly initialize 'k' to prevent warnings. + B() : k(0), l(0) {} // explicitly initialize 'k' to prevent warnings. const int k; int l; }; |