From: Collin Funk Date: Sat, 17 Jan 2026 06:56:15 +0000 (-0800) Subject: maint: pacify another gcc -Wzero-as-null-pointer-constant warning X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=289278eee208d4b1a08cf777b1f2a5e48d0aeed8;p=thirdparty%2Fcoreutils.git maint: pacify another gcc -Wzero-as-null-pointer-constant warning * src/uptime.c (print_uptime): Add a timezone_t cast to zero. Don't use nullptr since timezone_t is not a standardized and may be defined to something other than a pointer. --- diff --git a/src/uptime.c b/src/uptime.c index 4e07f1cb82..37d3206f92 100644 --- a/src/uptime.c +++ b/src/uptime.c @@ -66,7 +66,7 @@ print_uptime (idx_t n, STRUCT_UTMP const *utmp_buf) previous versions of coreutils don't. */ if (tmn) /* TRANSLATORS: This prints the current clock time. */ - fprintftime (stdout, _(" %H:%M:%S "), tmn, 0, 0); + fprintftime (stdout, _(" %H:%M:%S "), tmn, (timezone_t) 0, 0); else { printf (_(" ??:???? "));