From b4f518ecfad09fc4279ea26a565332835e403dab Mon Sep 17 00:00:00 2001 From: Carlos O'Donell Date: Tue, 15 Mar 2016 23:16:47 -0400 Subject: Fix building glibc master with NDEBUG and --with-cpu. When building on i686, x86_64, and arm, and with NDEBUG, or --with-cpu there are various variables and functions which are unused based on these settings. This patch marks all such variables with __attribute__((unused)) to avoid the compiler warnings when building with the aformentioned options. --- catgets/tst-catgets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'catgets') diff --git a/catgets/tst-catgets.c b/catgets/tst-catgets.c index 0886938d53..7169ceb841 100644 --- a/catgets/tst-catgets.c +++ b/catgets/tst-catgets.c @@ -22,7 +22,7 @@ do_bz17905 (void) { char *buf; struct rlimit rl; - nl_catd result; + nl_catd result __attribute__ ((unused)); const int sz = 1024 * 1024; -- cgit 1.4.1