]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: avoid a -Wunsed-but-set warning on some systems
authorPádraig Brady <P@draigBrady.com>
Sat, 30 Jun 2012 23:04:37 +0000 (00:04 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 2 Jul 2012 10:34:16 +0000 (12:34 +0200)
* src/stty.c (main): Mark speed_was_set as possibly unused,
as is the case when CIBAUD is undefined (on ppc64 GNU/Linux
for example).
Reported-by: Stefano Lattarini
src/stty.c

index 83b502cbc436f1e1d52bf07b005ac4352e3e9f2c..a95635ce52ba04af4c3118e69dcacdcb5589506a 100644 (file)
@@ -737,7 +737,7 @@ main (int argc, char **argv)
   int argi = 0;
   int opti = 1;
   bool require_set_attr;
-  bool speed_was_set;
+  bool speed_was_set ATTRIBUTE_UNUSED;
   bool verbose_output;
   bool recoverable_output;
   int k;