From db3ce29b36807c5b5278913399e14b1ec00f0f77 Mon Sep 17 00:00:00 2001 From: Szymon Gizler <151655464+sgizler@users.noreply.github.com> Date: Wed, 17 Jan 2024 14:32:44 +0100 Subject: [PATCH] Fix wrong utimes() param (#4829) --- src/V3Os.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/V3Os.cpp b/src/V3Os.cpp index b6d2be2a0..9286a00d1 100644 --- a/src/V3Os.cpp +++ b/src/V3Os.cpp @@ -318,9 +318,7 @@ void V3Os::filesystemFlushBuildDir(const string& dirname) { // Attempt to force out written directory, for NFS like file systems. #if !defined(_MSC_VER) && !defined(__MINGW32__) // Linux kernel may not reread from NFS unless timestamp modified - struct timeval tv; - gettimeofday(&tv, NULL); - const int err = utimes(dirname.c_str(), &tv); + const int err = utimes(dirname.c_str(), nullptr); // Not an error if (err != 0) UINFO(1, "-Info: File not utimed: " << dirname << endl); #endif