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.
This commit is contained in:
Paul Eggert committed 2022-01-31 12:07:39 -08:00
1 parent a72fc9ba5f
commit e2feea68ac
1 file changed
-4
-4
View 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;