Fix warnings on non-x86_64 systems
[lttng-ust.git] / src / common / ringbuffer / shm.c
index 8be7e359ea30ab4c7dec5b642ccc5b122e5745c6..a3235b6961ad6e0b6c13677c84bd78bb5207b954 100644 (file)
@@ -264,11 +264,19 @@ static bool lttng_is_numa_available(void)
 }
 #endif
 
+#ifdef HAVE_LIBNUMA
 struct shm_object *shm_object_table_alloc(struct shm_object_table *table,
                        size_t memory_map_size,
                        enum shm_object_type type,
                        int stream_fd,
                        int cpu)
+#else
+struct shm_object *shm_object_table_alloc(struct shm_object_table *table,
+                       size_t memory_map_size,
+                       enum shm_object_type type,
+                       int stream_fd,
+                       int cpu __attribute__((unused)))
+#endif
 {
        struct shm_object *shm_object;
 #ifdef HAVE_LIBNUMA
This page took 0.022574 seconds and 4 git commands to generate.