From c4d48f3ae363fb6f6a7d789a0f32b28eb60c2404 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Wed, 15 Apr 2015 11:22:36 +0200 Subject: [PATCH] tls: removed inline specifier and renamed safe_shm_available() - became shm_available_safe() to have the shm_ prefix which common for shm functions - declaring inline in c header file and implementing in c source file makes clang throw compile warnings --- mem/shm_mem.c | 2 +- mem/shm_mem.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mem/shm_mem.c b/mem/shm_mem.c index 5b6a0cf4e0f..c85cac09f43 100644 --- a/mem/shm_mem.c +++ b/mem/shm_mem.c @@ -254,7 +254,7 @@ void shm_mem_destroy(void) #endif } -inline unsigned long safe_shm_available() +unsigned long shm_available_safe() { unsigned long ret; shm_lock(); diff --git a/mem/shm_mem.h b/mem/shm_mem.h index 97032d45f1b..2f75b23d407 100644 --- a/mem/shm_mem.h +++ b/mem/shm_mem.h @@ -314,7 +314,7 @@ do{\ /* multi-process safe version of shm_available() */ -inline unsigned long safe_shm_available(); +unsigned long shm_available_safe(); #endif /* shm_mem_h */