OSDN Git Service

merge from gcc
authordj <dj>
Tue, 1 Dec 2009 06:50:19 +0000 (06:50 +0000)
committerdj <dj>
Tue, 1 Dec 2009 06:50:19 +0000 (06:50 +0000)
libdecnumber/ChangeLog
libdecnumber/decContext.c

index b64e561..88df3a4 100644 (file)
@@ -1,3 +1,8 @@
+2009-11-28  Jakub Jelinek  <jakub@redhat.com>
+
+       * decContext.c (decContextTestEndian): Move adj definition into
+       #if DECCHECK guarded code.
+
 2009-09-09  Paolo Bonzini  <bonzini@gnu.org>
 
        * configure: Regenerate.
index 1756dcb..aa81959 100644 (file)
@@ -393,11 +393,11 @@ Int decContextTestEndian(Flag quiet) {
   if (dle>1) dle=1;          /* ensure 0 or 1 */
 
   if (LITEND!=DECLITEND) {
-    const char *adj;
     if (!quiet) {
+#if DECCHECK
+      const char *adj;
       if (LITEND) adj="little";
             else adj="big";
-#if DECCHECK
       printf("Warning: DECLITEND is set to %d, but this computer appears to be %s-endian\n",
             DECLITEND, adj);
 #endif