From f0cb202d55890913ebf0ee5d9ada6d3521f812dc Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Sun, 1 Jul 2012 00:04:37 +0100 Subject: 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 --- src/stty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stty.c') 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; -- cgit v1.2.3-54-g00ecf