aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libtrau
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-04-04 13:01:28 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-04-04 13:01:28 +0200
commit444d7d8e65447ca871db00828d2eda1490c2bbe7 (patch)
treea8befaab7c54ced487002a45b5e90dee989b8b6a /openbsc/src/libtrau
parent686191a1c9be0f6dcfe92782332c4507b70e37e1 (diff)
ipa: Fix compiler warnings about aliasing
Use memcpy to copy from the OML message into the stack and then convert the network byte order. network_listen.c: In function ‘test_rep’: network_listen.c:145:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] test_rep_len = ntohs(*(uint16_t *) &foh->data[3]); ^ network_listen.c:153:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] ferr_list_len = ntohs(*(uint16_t *) &foh->data[7]); ^ network_listen.c:164:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] ferr_list_len = ntohs(*(uint16_t *) &foh->data[7]); ^ network_listen.c:130:11: warning: variable ‘test_rep_len’ set but not used [-Wunused-but-set-variable] uint16_t test_rep_len, ferr_list_len;
Diffstat (limited to 'openbsc/src/libtrau')
0 files changed, 0 insertions, 0 deletions