forked from OSchip/llvm-project
Enable/silence -Wmissing-field-initializers.
llvm-svn: 152334
This commit is contained in:
parent
8b0f3e0525
commit
37c247c13c
|
@ -29,7 +29,7 @@ fi
|
|||
|
||||
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-*)
|
||||
|
|
|
@ -152,6 +152,9 @@ __enum_type_info::can_catch(const __shim_type_info* thrown_type,
|
|||
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 @@ __class_type_info::can_catch(const __shim_type_info* thrown_type,
|
|||
return false;
|
||||
}
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
void
|
||||
__class_type_info::process_found_base_class(__dynamic_cast_info* info,
|
||||
void* adjustedPtr,
|
||||
|
@ -277,6 +282,9 @@ __pbase_type_info::can_catch(const __shim_type_info* thrown_type,
|
|||
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 @@ __pointer_type_info::can_catch(const __shim_type_info* thrown_type,
|
|||
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 @@ __dynamic_cast(const void* static_ptr,
|
|||
return const_cast<void*>(dst_ptr);
|
||||
}
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
#pragma GCC visibility pop
|
||||
#pragma GCC visibility push(hidden)
|
||||
|
||||
|
|
Loading…
Reference in New Issue