Fix c99 compatibility: tp_rcu_dereference_bp() should not use braced-groups within...
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 18 Jun 2012 14:10:36 +0000 (10:10 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 18 Jun 2012 14:10:36 +0000 (10:10 -0400)
commita4eaf8eabe829be8f7d7432ffaf83291a068b0ed
tree5686316f2f78082fd211c71e6b316cde5d08141e
parenta903623f391894ed136effbed7ae744fe9d66820
Fix c99 compatibility: tp_rcu_dereference_bp() should not use braced-groups within expressions

Allow tp_rcu_dereference_bp() to be used within programs compiled with
--std=c99 -pedantic -Werror. Fixes the following:

In file included from hello.c:34:0:
ust_tests_hello.h: In function ‘__tracepoint_cb_ust_tests_hello___tptest’:
ust_tests_hello.h:28:1: warning: ISO C forbids braced-groups within expressions [-pedantic]
ust_tests_hello.h:28:1: warning: ISO C forbids conversion of object pointer to function pointer type [-pedantic]

We can easily fix this one since tp_rcu_dereference_bp() really
evaluates only a single expression.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/tracepoint-rcu.h
tests/hello/Makefile.am
This page took 0.024702 seconds and 4 git commands to generate.