Fix: 32-bit x86 strict-aliasing warnings
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 16 Aug 2012 19:57:05 +0000 (15:57 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 16 Aug 2012 19:57:05 +0000 (15:57 -0400)
commitfa0994718a5855f67bc73546558df0ee742e376a
tree92611a4db9a9ca1b9d51a55f916459e3044302e1
parent2c44f5b96c30c96daf1c4b988d7498b5ee5fc009
Fix: 32-bit x86 strict-aliasing warnings

Compiling on x86-32 shows the following warnings for filter (with gcc
4.3 and 4.4):

././ust_tests_hello.h:28: note: initialized from here
././ust_tests_hello.h:28: error: dereferencing pointer ‘__stack_data.18’ does break strict-aliasing rules

Fix it by using memcpy when copying to the temporary "stack" array used
to send arguments to the filter.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/ust-tracepoint-event.h
This page took 0.025105 seconds and 4 git commands to generate.