Add unused attribute to lttng_to_index_major param
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 4 Jun 2018 16:50:51 +0000 (12:50 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 4 Jun 2018 16:50:53 +0000 (12:50 -0400)
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 <jeremie.galarneau@efficios.com>
src/common/index/ctf-index.h

index 5d6bd80f4cf11b32ed81574141e4ed7c5854c33a..8f0a56c25228509ffe6794ae22dac3203e080894 100644 (file)
@@ -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;
This page took 0.025434 seconds and 4 git commands to generate.