Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Oct 2013 19:53:53 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r256925 - head/include
Message-ID:  <201310221953.r9MJrrFl018182@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);			\
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310221953.r9MJrrFl018182>