summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2013-10-22 19:53:52 +0000
committertijl <tijl@FreeBSD.org>2013-10-22 19:53:52 +0000
commit1a8a58e831391306e8ee4a788ec4a80a51bad8ab (patch)
treeee0ec994c0810d460961c45ffc269ca906eb97fa
parentbb2f04b00e06c155f443d7f89468c31fc0f0a5ed (diff)
downloadFreeBSD-src-1a8a58e831391306e8ee4a788ec4a80a51bad8ab.zip
FreeBSD-src-1a8a58e831391306e8ee4a788ec4a80a51bad8ab.tar.gz
Add a dummy statement to the beginning of the pthread_cleanup_pop() macro
to allow a call of the macro to be labelled as in: label: pthread_cleanup_pop(); Reviewed by: imp MFC after: 3 days
-rw-r--r--include/pthread.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/pthread.h b/include/pthread.h
index 40810f6..3b56dbd 100644
--- a/include/pthread.h
+++ b/include/pthread.h
@@ -175,6 +175,7 @@ int pthread_barrierattr_setpshared(pthread_barrierattr_t *, int);
{
#define pthread_cleanup_pop(execute) \
+ (void)0; \
} \
__pthread_cleanup_pop_imp(execute); \
}
OpenPOWER on IntegriCloud