Fix c99 compatibility: tp_rcu_dereference_bp() should not use braced-groups within...
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 18 Jun 2012 14:22:12 +0000 (10:22 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 18 Jun 2012 17:51:17 +0000 (13:51 -0400)
commit8ae4aa03362d5ce0413d9fc92cac2b96e89d579b
tree5952d4b1a104e4df1f6bf9f3549bbf1fb908d140
parent2e349edd406c641a9437020451b718e5bc9253e0
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
This page took 0.025974 seconds and 4 git commands to generate.