]> git.lttng.org Git - lttng-ust.git/commit
ustfork: Fix warning about volatile qualifier
authorOlivier Dion <odion@efficios.com>
Tue, 15 Aug 2023 14:47:06 +0000 (10:47 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 15 Aug 2023 19:29:09 +0000 (15:29 -0400)
commit3194ee997a63cbe35c4e95394ce4d4654eeeea8e
treec25b6212047a721d0f32b2903c77a9b70969fc9f
parentd32dbe6722a94a6a1cdc0be1335599ceedbaf855
ustfork: Fix warning about volatile qualifier

Clang is strict about the volatile qualifier on function pointers. It
also wants pointers to be passed to atomic builtins, even for
functions. Therefore, use the addresses of function pointers even if
unnecessary according to C standard.

Change-Id: I5d553a46671cc4bfbe8de5cec2425201459f60d2
Signed-off-by: Olivier Dion <odion@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-fork/ustfork.c
This page took 0.02904 seconds and 4 git commands to generate.