summaryrefslogtreecommitdiff
path: root/src/stty.c
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2012-07-01 00:04:37 +0100
committerPádraig Brady <P@draigBrady.com>2012-07-02 12:34:16 +0200
commitf0cb202d55890913ebf0ee5d9ada6d3521f812dc (patch)
tree9b64d768e70f6b14b0bd3a9b6e59e673a2124ef9 /src/stty.c
parentfdfac0d15920a1930f1e46c00683381ae1f77638 (diff)
downloadcoreutils-f0cb202d55890913ebf0ee5d9ada6d3521f812dc.tar.xz
maint: avoid a -Wunsed-but-set warning on some systems
* 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
Diffstat (limited to 'src/stty.c')
-rw-r--r--src/stty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stty.c b/src/stty.c
index 83b502cbc..a95635ce5 100644
--- a/src/stty.c
+++ b/src/stty.c
@@ -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;