This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.20-263-g59ef171


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  59ef17152b1ad9a4c4d618ec085586e3e14f6e94 (commit)
      from  a6f3079bfb8355b07bdc5eb578e2e77ff306a778 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=59ef17152b1ad9a4c4d618ec085586e3e14f6e94

commit 59ef17152b1ad9a4c4d618ec085586e3e14f6e94
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Wed Nov 26 16:07:39 2014 +0000

    Fix nptl/tst-cancel-self-cancelstate.c warning.
    
    This patch fixes "../sysdeps/nptl/pthread.h:670:26: warning:
    initialization discards 'volatile' qualifier from pointer target type"
    arising when building nptl/tst-cancel-self-cancelstate.c.  The problem
    is passing a volatile int * to a macro expecting void *; the patch
    adds an explicit cast.
    
    Tested for x86_64.
    
    	* nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
    	pthread_cleanup_push to void *.

diff --git a/ChangeLog b/ChangeLog
index f43cb09..0797a15 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
 
+	* nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
+	pthread_cleanup_push to void *.
+
 	* sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
 	Undefine.
 
diff --git a/nptl/tst-cancel-self-cancelstate.c b/nptl/tst-cancel-self-cancelstate.c
index 3dce967..0defd0b 100644
--- a/nptl/tst-cancel-self-cancelstate.c
+++ b/nptl/tst-cancel-self-cancelstate.c
@@ -29,7 +29,7 @@ do_test (void)
   int ret = 0;
   volatile int should_fail = 1;
 
-  pthread_cleanup_push (cleanup, &should_fail);
+  pthread_cleanup_push (cleanup, (void *) &should_fail);
 
   if ((ret = pthread_setcancelstate (PTHREAD_CANCEL_DISABLE, NULL)) != 0)
     {

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                          |    3 +++
 nptl/tst-cancel-self-cancelstate.c |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]