diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2004-08-15 03:37:24 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2004-08-15 03:37:24 +0000 |
| commit | b6711c26123ac2541ca9e692141374a91d19a2f9 (patch) | |
| tree | 4311c9cf5a3ac705afee23219e8a001c25eb2757 /src/include/k5-thread.h | |
| parent | 56a7231e867b8bb17e1852a8d04fe6e3f5b62e33 (diff) | |
| download | krb5-b6711c26123ac2541ca9e692141374a91d19a2f9.tar.gz krb5-b6711c26123ac2541ca9e692141374a91d19a2f9.tar.xz krb5-b6711c26123ac2541ca9e692141374a91d19a2f9.zip | |
Fix Tru64 build:
* k5-thread.h (k5_os_nothread_mutex_assert_locked,
k5_os_nothread_mutex_assert_unlocked, k5_os_mutex_assert_locked,
k5_os_mutex_assert_unlocked): Assertion macros should always have type void.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16663 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/k5-thread.h')
| -rw-r--r-- | src/include/k5-thread.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/include/k5-thread.h b/src/include/k5-thread.h index 63dbcbfb4..5d1309310 100644 --- a/src/include/k5-thread.h +++ b/src/include/k5-thread.h @@ -272,11 +272,11 @@ typedef struct { # define k5_os_nothread_mutex_assert_locked(M) \ (assert((M)->initialized == K5_MUTEX_DEBUG_INITIALIZED), \ assert((M)->locked != K5_MUTEX_DEBUG_UNLOCKED), \ - assert((M)->locked == K5_MUTEX_DEBUG_LOCKED), 0) + assert((M)->locked == K5_MUTEX_DEBUG_LOCKED)) # define k5_os_nothread_mutex_assert_unlocked(M) \ (assert((M)->initialized == K5_MUTEX_DEBUG_INITIALIZED), \ assert((M)->locked != K5_MUTEX_DEBUG_LOCKED), \ - assert((M)->locked == K5_MUTEX_DEBUG_UNLOCKED), 0) + assert((M)->locked == K5_MUTEX_DEBUG_UNLOCKED)) #else /* threads disabled and not debugging */ @@ -300,8 +300,8 @@ static inline int k5_os_nothread_mutex_lock(k5_os_nothread_mutex *m) { static inline int k5_os_nothread_mutex_unlock(k5_os_nothread_mutex *m) { return 0; } -# define k5_os_nothread_mutex_assert_locked(M) (0) -# define k5_os_nothread_mutex_assert_unlocked(M) (0) +# define k5_os_nothread_mutex_assert_locked(M) ((void)0) +# define k5_os_nothread_mutex_assert_unlocked(M) ((void(0) #endif @@ -563,8 +563,8 @@ static inline int k5_os_mutex_lock(k5_os_mutex *m) (M)->is_locked = 0, \ ReleaseMutex((M)->h) ? 0 : GetLastError()) -# define k5_os_mutex_assert_unlocked(M) (0) -# define k5_os_mutex_assert_locked(M) (0) +# define k5_os_mutex_assert_unlocked(M) ((void)0) +# define k5_os_mutex_assert_locked(M) ((void)0) #else |
