Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Oct 2013 13:27:56 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r257113 - stable/10/include
Message-ID:  <201310251327.r9PDRu4x070822@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tijl
Date: Fri Oct 25 13:27:55 2013
New Revision: 257113
URL: http://svnweb.freebsd.org/changeset/base/257113

Log:
  MFC r256925:
  
  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
  Approved by:	re (glebius)

Modified:
  stable/10/include/pthread.h
Directory Properties:
  stable/10/include/   (props changed)

Modified: stable/10/include/pthread.h
==============================================================================
--- stable/10/include/pthread.h	Fri Oct 25 13:25:49 2013	(r257112)
+++ stable/10/include/pthread.h	Fri Oct 25 13:27:55 2013	(r257113)
@@ -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?201310251327.r9PDRu4x070822>