From: Mathieu Desnoyers Date: Fri, 8 Dec 2017 19:17:21 +0000 (-0500) Subject: Fix: lttng_channel_syscall_mask() bool use in bitfield X-Git-Tag: v2.9.8~20 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0d2154e80e2ea79466f478be062845c6a9ebdb10;p=lttng-modules.git Fix: lttng_channel_syscall_mask() bool use in bitfield gcc 7 warns about using ~ on a bool. Pass a char as input type instead. Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-syscalls.c b/lttng-syscalls.c index 080355f4..6ee8280e 100644 --- a/lttng-syscalls.c +++ b/lttng-syscalls.c @@ -1255,7 +1255,7 @@ long lttng_channel_syscall_mask(struct lttng_channel *channel, filter = channel->sc_filter; for (bit = 0; bit < ARRAY_SIZE(sc_table); bit++) { - bool state; + char state; if (channel->sc_table) { if (filter) @@ -1268,7 +1268,7 @@ long lttng_channel_syscall_mask(struct lttng_channel *channel, bt_bitfield_write_be(tmp_mask, char, bit, 1, state); } for (; bit < sc_tables_len; bit++) { - bool state; + char state; if (channel->compat_sc_table) { if (filter)