diff options
| author | Martin Schwenke <martin@meltin.net> | 2014-08-04 14:50:17 +1000 |
|---|---|---|
| committer | Amitay Isaacs <amitay@samba.org> | 2014-08-21 04:46:13 +0200 |
| commit | 6fd3ce53914c5c5aa79b972b42258c722b227b88 (patch) | |
| tree | e0b50671191e1546be49ed5e1ff65324c7cb96d1 /python/examples | |
| parent | 2807b185f438c40544d4fd133bc386e411b12d0c (diff) | |
| download | samba-6fd3ce53914c5c5aa79b972b42258c722b227b88.tar.gz samba-6fd3ce53914c5c5aa79b972b42258c722b227b88.tar.xz samba-6fd3ce53914c5c5aa79b972b42258c722b227b88.zip | |
ctdb-daemon: Fix some strict-aliasing warnings
Seeing these with -Wall:
../server/ctdb_call.c:1117:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
record_flags = *(uint32_t *)&c->data[c->keylen + c->datalen];
^
memcpy() seems to be the easiest way to get fix these. The
alternative would be to use unmarshalling functions.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'python/examples')
0 files changed, 0 insertions, 0 deletions
