Blame SOURCES/glibc-rh1505492-types-3.patch

147e83
commit 59ef17152b1ad9a4c4d618ec085586e3e14f6e94
147e83
Author: Joseph Myers <joseph@codesourcery.com>
147e83
Date:   Wed Nov 26 16:07:39 2014 +0000
147e83
147e83
    Fix nptl/tst-cancel-self-cancelstate.c warning.
147e83
    
147e83
    This patch fixes "../sysdeps/nptl/pthread.h:670:26: warning:
147e83
    initialization discards 'volatile' qualifier from pointer target type"
147e83
    arising when building nptl/tst-cancel-self-cancelstate.c.  The problem
147e83
    is passing a volatile int * to a macro expecting void *; the patch
147e83
    adds an explicit cast.
147e83
    
147e83
    Tested for x86_64.
147e83
    
147e83
            * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
147e83
            pthread_cleanup_push to void *.
147e83
147e83
diff --git a/nptl/tst-cancel-self-cancelstate.c b/nptl/tst-cancel-self-cancelstate.c
147e83
index c82e6f3cedd1745b..21314a2efb00dbf1 100644
147e83
--- a/nptl/tst-cancel-self-cancelstate.c
147e83
+++ b/nptl/tst-cancel-self-cancelstate.c
147e83
@@ -29,7 +29,7 @@ do_test (void)
147e83
   int ret = 0;
147e83
   volatile int should_fail = 1;
147e83
 
147e83
-  pthread_cleanup_push (cleanup, &should_fail);
147e83
+  pthread_cleanup_push (cleanup, (void *) &should_fail);
147e83
 
147e83
   if ((ret = pthread_setcancelstate (PTHREAD_CANCEL_DISABLE, NULL)) != 0)
147e83
     {