[libcxxabi] r272823 - Fix warning about uninitialized const member. NFC

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 15 12:48:26 PDT 2016


Author: ericwf
Date: Wed Jun 15 14:48:26 2016
New Revision: 272823

URL: http://llvm.org/viewvc/llvm-project?rev=272823&view=rev
Log:
Fix warning about uninitialized const member. NFC

Modified:
    libcxxabi/trunk/test/catch_member_data_pointer_01.pass.cpp

Modified: libcxxabi/trunk/test/catch_member_data_pointer_01.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/catch_member_data_pointer_01.pass.cpp?rev=272823&r1=272822&r2=272823&view=diff
==============================================================================
--- libcxxabi/trunk/test/catch_member_data_pointer_01.pass.cpp (original)
+++ libcxxabi/trunk/test/catch_member_data_pointer_01.pass.cpp Wed Jun 15 14:48:26 2016
@@ -22,6 +22,7 @@ typedef       int A::*md2;
 
 struct B : public A
 {
+    B() : k(42), l(0) {} // explicitly initialize 'k' to prevent warnings.
     const int k;
     int l;
 };




More information about the cfe-commits mailing list