arrfab / rpms / glibc

Forked from rpms/glibc 4 years ago
Clone

Blame SOURCES/glibc-rh1505492-undef-24.patch

147e83
commit 4f02e2b8f94799b4f9e57e922c06c5eeec4272e6
147e83
Author: Will Newton <will.newton@linaro.org>
147e83
Date:   Fri Apr 25 15:48:48 2014 +0100
147e83
147e83
    stdlib/gmp-impl.h: Silence -Wundef warning for USE_STACK_ALLOC
147e83
    
147e83
    The upstream version of GMP has long removed this conditional
147e83
    altogether in this commit:
147e83
    
147e83
    changeset:   5254:88618a4694ac
147e83
    user:        Kevin Ryde <user42@zip.com.au>
147e83
    date:        Sun Jun 17 01:37:27 2001 +0200
147e83
    
147e83
    So just turn the #if into an #ifdef to silence the warning.
147e83
    
147e83
    ChangeLog:
147e83
    
147e83
    2014-05-14  Will Newton  <will.newton@linaro.org>
147e83
    
147e83
            * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
147e83
            rather than #if.
147e83
147e83
diff --git a/stdlib/gmp-impl.h b/stdlib/gmp-impl.h
147e83
index 7e94624859dd7017..add63603f64ff39e 100644
147e83
--- a/stdlib/gmp-impl.h
147e83
+++ b/stdlib/gmp-impl.h
147e83
@@ -47,7 +47,7 @@ along with the GNU MP Library; see the file COPYING.LIB.  If not, see
147e83
 #endif
147e83
 #endif
147e83
 
147e83
-#if ! defined (HAVE_ALLOCA) || USE_STACK_ALLOC
147e83
+#if ! defined (HAVE_ALLOCA) || defined (USE_STACK_ALLOC)
147e83
 #include "stack-alloc.h"
147e83
 #else
147e83
 #define TMP_DECL(m)