From: Pádraig Brady Date: Tue, 22 Sep 2009 07:01:44 +0000 (+0100) Subject: maint: uptime: fix a theoretical compile warning X-Git-Tag: v8.0~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a404d10f5a7b2f2e80b8f10c71aadf0ab46812f;p=thirdparty%2Fcoreutils.git maint: uptime: fix a theoretical compile warning * src/uptime.c (print_uptime) [!HAVE_UTMPX_H && !HAVE_UTMP_H]: Reference possibly unused arguments. --- diff --git a/src/uptime.c b/src/uptime.c index 0449c6d564..cb3dcf0f8d 100644 --- a/src/uptime.c +++ b/src/uptime.c @@ -111,7 +111,11 @@ print_uptime (size_t n, const STRUCT_UTMP *this) boot_time = UT_TIME_MEMBER (this); ++this; } +#else + (void) n; + (void) this; #endif + time_now = time (NULL); #if defined HAVE_PROC_UPTIME if (uptime == 0)