Fix warnings on non-x86_64 systems
[lttng-ust.git] / src / common / counter / shm.c
index e421d045c991a02be48e655a044c42d30d0c2491..8b65d1fc6137dcb80dafbe5c39689ed8c5010c29 100644 (file)
@@ -192,11 +192,19 @@ static bool lttng_is_numa_available(void)
 }
 #endif
 
+#ifdef HAVE_LIBNUMA
 struct lttng_counter_shm_object *lttng_counter_shm_object_table_alloc(struct lttng_counter_shm_object_table *table,
                        size_t memory_map_size,
                        enum lttng_counter_shm_object_type type,
                        int cpu_fd,
                        int cpu)
+#else
+struct lttng_counter_shm_object *lttng_counter_shm_object_table_alloc(struct lttng_counter_shm_object_table *table,
+                       size_t memory_map_size,
+                       enum lttng_counter_shm_object_type type,
+                       int cpu_fd,
+                       int cpu __attribute__((unused)))
+#endif
 {
        struct lttng_counter_shm_object *shm_object;
 #ifdef HAVE_LIBNUMA
This page took 0.02436 seconds and 4 git commands to generate.