From 5e943e75cbb2d63c95d674e523e078050f1c868c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 4 Jun 2018 12:50:51 -0400 Subject: [PATCH] Add unused attribute to lttng_to_index_major param MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Suppresses an unused variable warning. The parameter is kept since this does depend on the connection's full version. the 'minor' parameter is unused for now since there is only one major version to support and only one major index version. However, this could change in the future and we don't want to have to modify all the version conversion sites. Signed-off-by: Jérémie Galarneau --- src/common/index/ctf-index.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/index/ctf-index.h b/src/common/index/ctf-index.h index 5d6bd80f4..8f0a56c25 100644 --- a/src/common/index/ctf-index.h +++ b/src/common/index/ctf-index.h @@ -80,7 +80,7 @@ static inline size_t ctf_packet_index_len(uint32_t major, uint32_t minor) } static inline uint32_t lttng_to_index_major(uint32_t lttng_major, - uint32_t lttng_minor) + uint32_t lttng_minor __attribute__((unused))) { if (lttng_major == 2) { return 1; -- 2.34.1