]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(main): #ifdef-out unreachable code.
authorJim Meyering <jim@meyering.net>
Tue, 16 Feb 1999 04:18:43 +0000 (04:18 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 16 Feb 1999 04:18:43 +0000 (04:18 +0000)
src/stty.c

index e5e1d5ca00b65222e223e4350ecdbe843816e608..0e4e38e25c913a1de8aa3ecf4c9f798ec6546d1b 100644 (file)
@@ -1059,15 +1059,19 @@ mutually exclusive"));
          if (speed_was_set || memcmp (&mode, &new_mode, sizeof (mode)) != 0)
 #endif
            {
-             size_t i;
              error (1, 0,
                     _("%s: unable to perform all requested operations"),
                     device_name);
-             printf (_("new_mode: mode\n"));
-             for (i = 0; i < sizeof (new_mode); i++)
-               printf ("0x%02x: 0x%02x\n",
-                       *(((unsigned char *) &new_mode) + i),
-                       *(((unsigned char *) &mode) + i));
+#ifdef TESTING
+             {
+               size_t i;
+               printf (_("new_mode: mode\n"));
+               for (i = 0; i < sizeof (new_mode); i++)
+                 printf ("0x%02x: 0x%02x\n",
+                         *(((unsigned char *) &new_mode) + i),
+                         *(((unsigned char *) &mode) + i));
+             }
+#endif
            }
        }
     }