mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
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:
1 parent
a72fc9ba5f
commit
e2feea68ac
1 file changed
-4
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user