svn commit: r256925 - head/include

Tijl Coosemans tijl at FreeBSD.org
Tue Oct 22 19:53:53 UTC 2013


Author: tijl
Date: Tue Oct 22 19:53:52 2013
New Revision: 256925
URL: http://svnweb.freebsd.org/changeset/base/256925

Log:
  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

Modified:
  head/include/pthread.h

Modified: head/include/pthread.h
==============================================================================
--- head/include/pthread.h	Tue Oct 22 19:49:19 2013	(r256924)
+++ head/include/pthread.h	Tue Oct 22 19:53:52 2013	(r256925)
@@ -175,6 +175,7 @@ int		pthread_barrierattr_setpshared(pthr
 			{
 
 #define		pthread_cleanup_pop(execute)					\
+				(void)0;					\
 			}							\
 			__pthread_cleanup_pop_imp(execute);			\
 		}


More information about the svn-src-head mailing list