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:28:33 +0000 (15:28 -0400)
commitbdc54f691b8ec841959bbc6cb2259aaf67861bdb
treec47211b2bed74df9f829a664b82db7f09cae5d20
parentcf54f06a38ed1f3a2ac49236ffb1f1e7b3024d87
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>
src/lib/lttng-ust-fork/ustfork.c
This page took 0.025239 seconds and 4 git commands to generate.