diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-04-04 13:01:28 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-04-04 13:01:28 +0200 |
commit | 444d7d8e65447ca871db00828d2eda1490c2bbe7 (patch) | |
tree | a8befaab7c54ced487002a45b5e90dee989b8b6a /openbsc/src/osmo-bsc/osmo_bsc_bssap.c | |
parent | 686191a1c9be0f6dcfe92782332c4507b70e37e1 (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/osmo-bsc/osmo_bsc_bssap.c')
0 files changed, 0 insertions, 0 deletions