X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust-libc-wrapper%2Flttng-ust-malloc.c;h=e1ff8e807f7a9fb22dc6f783230ce6f1b1693e4f;hb=2208d8b5689264e35ed0a660d8c3c82021cc0367;hp=d407985f58c9d6abd306bd32ba1d3ebddfc885be;hpb=c53279a3e7796da67c5ad8d5e5657bf03def2dcb;p=lttng-ust.git diff --git a/liblttng-ust-libc-wrapper/lttng-ust-malloc.c b/liblttng-ust-libc-wrapper/lttng-ust-malloc.c index d407985f..e1ff8e80 100644 --- a/liblttng-ust-libc-wrapper/lttng-ust-malloc.c +++ b/liblttng-ust-libc-wrapper/lttng-ust-malloc.c @@ -65,7 +65,7 @@ static void ust_malloc_spin_lock(pthread_mutex_t *lock) __attribute__((unused)); static -void ust_malloc_spin_lock(pthread_mutex_t *lock) +void ust_malloc_spin_lock(pthread_mutex_t *lock __attribute__((unused))) { /* * The memory barrier within cmpxchg takes care of ordering @@ -80,7 +80,7 @@ static void ust_malloc_spin_unlock(pthread_mutex_t *lock) __attribute__((unused)); static -void ust_malloc_spin_unlock(pthread_mutex_t *lock) +void ust_malloc_spin_unlock(pthread_mutex_t *lock __attribute__((unused))) { /* * Ensure memory accesses within the critical section do not @@ -150,7 +150,7 @@ void *static_malloc(size_t size) } static -void static_free(void *ptr) +void static_free(void *ptr __attribute__((unused))) { /* no-op. */ }