From: Jérémie Galarneau Date: Mon, 4 Jun 2018 16:50:51 +0000 (-0400) Subject: Add unused attribute to lttng_to_index_major param X-Git-Tag: v2.11.0-rc1~189 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5e943e75cbb2d63c95d674e523e078050f1c868c;p=lttng-tools.git Add unused attribute to lttng_to_index_major param 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 --- 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;