From: Pádraig Brady Date: Sat, 30 Jun 2012 23:04:37 +0000 (+0100) Subject: maint: avoid a -Wunsed-but-set warning on some systems X-Git-Tag: v8.18~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0cb202d55890913ebf0ee5d9ada6d3521f812dc;p=thirdparty%2Fcoreutils.git 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 --- 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;