]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
test: simplify gcc pacification
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 31 Jan 2022 16:42:07 +0000 (08:42 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 31 Jan 2022 20:07:39 +0000 (12:07 -0800)
* 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

index f154199ceb9fd1ad2b3af4e748a6f211333bfddc..6daad3b3427e05ba3ebb8788228f60788aa6b1a9 100644 (file)
@@ -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;