(k5_mutex_lock_update_stats) [!DEBUG_THREADS_STATS && __GNUC__]: Declare
authorKen Raeburn <raeburn@mit.edu>
Tue, 19 Dec 2006 00:34:11 +0000 (00:34 +0000)
committerKen Raeburn <raeburn@mit.edu>
Tue, 19 Dec 2006 00:34:11 +0000 (00:34 +0000)
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

src/include/k5-thread.h

index 13c2391fb26e0e83c5ec58c8231af4ef306886de..73036c66459364faf99c5d34aaa0bc59a3967634 100644 (file)
@@ -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();  \