Skip to content

Commit 567b755

Browse files
committed
Fix warning about uninitialized const member. NFC
llvm-svn: 272823
1 parent 1ff954f commit 567b755

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libcxxabi/test/catch_member_data_pointer_01.pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ typedef int A::*md2;
2222

2323
struct B : public A
2424
{
25+
B() : k(42), l(0) {} // explicitly initialize 'k' to prevent warnings.
2526
const int k;
2627
int l;
2728
};

0 commit comments

Comments
 (0)