diff options
author | Josh Haberman <jhaberman@gmail.com> | 2016-11-29 20:04:31 +0000 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2016-11-29 20:04:31 +0000 |
commit | 62472c1161ea859fecf1707a28c79dd555412f75 (patch) | |
tree | 9131361c7d3f5f3a711f5ec2155a6c9a7a38c81b /upb/msg.c | |
parent | e977c0af03fa2aa366ca7ecffcf007f186357c60 (diff) |
Suppress warnings on 32-bit for this dead code for now.
Diffstat (limited to 'upb/msg.c')
-rw-r--r-- | upb/msg.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -82,13 +82,15 @@ static uint8_t upb_msg_fieldsize(const upb_fielddef *f) { * pointer to that in the tables for extensions/maps. */ static upb_value upb_toval(upb_msgval val) { upb_value ret; - memcpy(&ret, &val, sizeof(upb_value)); + UPB_UNUSED(val); + memset(&ret, 0, sizeof(upb_value)); /* XXX */ return ret; } static upb_msgval upb_msgval_fromval(upb_value val) { upb_msgval ret; - memcpy(&ret, &val, sizeof(upb_value)); + UPB_UNUSED(val); + memset(&ret, 0, sizeof(upb_msgval)); /* XXX */ return ret; } |