Add unlink support to moxie simulator
[deliverable/binutils-gdb.git] / libdecnumber / decContext.c
index 28bbdbb4929bc0749e4211649e4e80876c3c81a0..5553c02af7348f1fd39c8365f3bf644f8cfbb517 100644 (file)
@@ -1,5 +1,5 @@
 /* Decimal context module for the decNumber C Library.
-   Copyright (C) 2005, 2007, 2009 Free Software Foundation, Inc.
+   Copyright (C) 2005-2018 Free Software Foundation, Inc.
    Contributed by IBM Corporation.  Author Mike Cowlishaw.
 
    This file is part of GCC.
@@ -31,7 +31,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 /* ------------------------------------------------------------------ */
 
 #include <string.h>          /* for strcmp */
+#ifdef DECCHECK
 #include <stdio.h>           /* for printf if DECCHECK */
+#endif
 #include "dconfig.h"         /* for GCC definitions */
 #include "decContext.h"       /* context and base types */
 #include "decNumberLocal.h"   /* decNumber local types, etc. */
@@ -391,12 +393,14 @@ 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";
       printf("Warning: DECLITEND is set to %d, but this computer appears to be %s-endian\n",
             DECLITEND, adj);
+#endif
       }
     res=(Int)LITEND-dle;
     }
This page took 0.024267 seconds and 4 git commands to generate.