From 2475dc26cd3be7322fa21fb47759820677b39744 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 31 Jan 2022 08:42:07 -0800 Subject: [PATCH 20/43] test: simplify gcc pacification * src/test.c (get_mtime) [lint]: Omit ifdef lint code that is no longer needed, as GCC has gotten smarter since 2005. --- src/test.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/test.c b/src/test.c index f154199ce..6daad3b34 100644 --- a/src/test.c +++ b/src/test.c @@ -168,10 +168,6 @@ get_mtime (char const *filename, struct timespec *mtime) { struct stat finfo; bool ok = (stat (filename, &finfo) == 0); -#ifdef lint - static struct timespec const zero; - *mtime = zero; -#endif if (ok) *mtime = get_stat_mtime (&finfo); return ok; -- 2.32.0