From: Ken Raeburn Date: Tue, 19 Dec 2006 00:34:11 +0000 (+0000) Subject: (k5_mutex_lock_update_stats) [!DEBUG_THREADS_STATS && __GNUC__]: Declare X-Git-Tag: krb5-1.7-alpha1~1395 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c4f2dfe5bf0733de993531c2dd0d66d6767dbf52;p=krb5.git (k5_mutex_lock_update_stats) [!DEBUG_THREADS_STATS && __GNUC__]: Declare arguments with "unused" attribute. (k5_pthread_mutex_lock) [DEBUG_THREADS && __GNUC__]: Use __extension__. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18972 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/k5-thread.h b/src/include/k5-thread.h index 13c2391fb..73036c664 100644 --- a/src/include/k5-thread.h +++ b/src/include/k5-thread.h @@ -249,7 +249,8 @@ typedef int k5_mutex_stats_tmp; #define k5_mutex_stats_start() (0) #ifdef __GNUC__ static inline void -k5_mutex_lock_update_stats(k5_debug_mutex_stats *m, k5_mutex_stats_tmp t) +k5_mutex_lock_update_stats(k5_debug_mutex_stats *m __attribute__((unused)), + k5_mutex_stats_tmp t __attribute__((unused))) { } #else @@ -475,7 +476,7 @@ typedef struct { #ifdef DEBUG_THREADS # ifdef __GNUC__ # define k5_pthread_mutex_lock(M) \ - ({ \ + __extension__ ({ \ k5_os_mutex *_m2 = (M); \ int _r2 = pthread_mutex_lock(&_m2->p); \ if (_r2 == 0) _m2->owner = pthread_self(); \