X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fcounter%2Fshm.c;h=8b65d1fc6137dcb80dafbe5c39689ed8c5010c29;hb=a34c2ec061dd1aee434ad6c0a0a1d78876010d47;hp=e421d045c991a02be48e655a044c42d30d0c2491;hpb=1be435396a9c3673fbda15bba2a1cf066a893408;p=lttng-ust.git diff --git a/src/common/counter/shm.c b/src/common/counter/shm.c index e421d045..8b65d1fc 100644 --- a/src/common/counter/shm.c +++ b/src/common/counter/shm.c @@ -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