Merge pull request #720 from redboltz/fix_711

Removed warnings.
This commit is contained in:
Takatoshi Kondo 2018-08-12 22:54:28 +09:00 committed by GitHub
commit 3a615bcf44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -297,8 +297,7 @@ const auto mp_object_def =
(
[](auto& ctx){
auto& app_specific = x3::get<tag_app_specific>(ctx).get();
union { uint32_t i; float f; } mem;
mem.i = _attr(ctx);
union { uint32_t i; float f; } mem = { _attr(ctx) };
app_specific.vis.visit_float32(mem.f);
}
)
@ -309,8 +308,7 @@ const auto mp_object_def =
(
[](auto& ctx){
auto& app_specific = x3::get<tag_app_specific>(ctx).get();
union { uint64_t i; double f; } mem;
mem.i = _attr(ctx);
union { uint64_t i; double f; } mem = { _attr(ctx) };
#if defined(TARGET_OS_IPHONE)
// ok
#elif defined(__arm__) && !(__ARM_EABI__) // arm-oabi