[lttng-dev] [PATCH urcu 1/3] Tests fix: unused variable warnings

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Fri Jul 21 12:43:01 UTC 2017


Merged into master, 0.10, 0.9, 0.8, thanks!

Mathieu

----- On Jul 20, 2017, at 5:33 PM, Michael Jeanson mjeanson at efficios.com wrote:

> Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
> ---
> tests/benchmark/test_urcu_lfs_rcu.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/benchmark/test_urcu_lfs_rcu.c
> b/tests/benchmark/test_urcu_lfs_rcu.c
> index ce01143..9e0bfad 100644
> --- a/tests/benchmark/test_urcu_lfs_rcu.c
> +++ b/tests/benchmark/test_urcu_lfs_rcu.c
> @@ -83,9 +83,10 @@ pthread_mutex_t affinity_mutex = PTHREAD_MUTEX_INITIALIZER;
> 
> static void set_affinity(void)
> {
> +#if HAVE_SCHED_SETAFFINITY
> 	cpu_set_t mask;
> -	int cpu;
> -	int ret;
> +	int cpu, ret;
> +#endif /* HAVE_SCHED_SETAFFINITY */
> 
> 	if (!use_affinity)
> 		return;
> --
> 2.7.4

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com


More information about the lttng-dev mailing list