[cfe-commits] [libcxxabi] r152334 - in /libcxxabi/trunk: lib/buildit src/private_typeinfo.cpp
Howard Hinnant
hhinnant at apple.com
Thu Mar 8 12:32:51 PST 2012
Author: hhinnant
Date: Thu Mar 8 14:32:50 2012
New Revision: 152334
URL: http://llvm.org/viewvc/llvm-project?rev=152334&view=rev
Log:
Enable/silence -Wmissing-field-initializers.
Modified:
libcxxabi/trunk/lib/buildit
libcxxabi/trunk/src/private_typeinfo.cpp
Modified: libcxxabi/trunk/lib/buildit
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/lib/buildit?rev=152334&r1=152333&r2=152334&view=diff
==============================================================================
--- libcxxabi/trunk/lib/buildit (original)
+++ libcxxabi/trunk/lib/buildit Thu Mar 8 14:32:50 2012
@@ -29,7 +29,7 @@
EXTRA_FLAGS="-std=c++0x -stdlib=libc++ -fstrict-aliasing -Wstrict-aliasing=2 \
-Wsign-conversion -Wshadow -Wconversion -Wunused-variable \
- -Wnewline-eof"
+ -Wmissing-field-initializers -Wnewline-eof"
case $TRIPLE in
*-apple-*)
Modified: libcxxabi/trunk/src/private_typeinfo.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/private_typeinfo.cpp?rev=152334&r1=152333&r2=152334&view=diff
==============================================================================
--- libcxxabi/trunk/src/private_typeinfo.cpp (original)
+++ libcxxabi/trunk/src/private_typeinfo.cpp Thu Mar 8 14:32:50 2012
@@ -152,6 +152,9 @@
return this == thrown_type;
}
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wmissing-field-initializers"
+
// Handles bullets 1 and 2
bool
__class_type_info::can_catch(const __shim_type_info* thrown_type,
@@ -176,6 +179,8 @@
return false;
}
+#pragma clang diagnostic pop
+
void
__class_type_info::process_found_base_class(__dynamic_cast_info* info,
void* adjustedPtr,
@@ -277,6 +282,9 @@
return thrown_type == &typeid(std::nullptr_t);
}
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wmissing-field-initializers"
+
// Handles bullets 1, 3 and 4
bool
__pointer_type_info::can_catch(const __shim_type_info* thrown_type,
@@ -319,9 +327,14 @@
return false;
}
+#pragma clang diagnostic pop
+
#pragma GCC visibility pop
#pragma GCC visibility push(default)
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wmissing-field-initializers"
+
// __dynamic_cast
// static_ptr: pointer to an object of type static_type; nonnull, and since the
@@ -458,6 +471,8 @@
return const_cast<void*>(dst_ptr);
}
+#pragma clang diagnostic pop
+
#pragma GCC visibility pop
#pragma GCC visibility push(hidden)
More information about the cfe-commits
mailing list