From f0cb202d55890913ebf0ee5d9ada6d3521f812dc Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
Date: Sun, 1 Jul 2012 00:04:37 +0100 Subject: [PATCH] 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(-) diff --git a/src/stty.c b/src/stty.c index 83b502cbc4..a95635ce52 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; -- 2.47.2