diff --git a/src/corelib/global/qtenvironmentvariables.cpp b/src/corelib/global/qtenvironmentvariables.cpp index 6a501bb8c42..47fc8f7eecc 100644 --- a/src/corelib/global/qtenvironmentvariables.cpp +++ b/src/corelib/global/qtenvironmentvariables.cpp @@ -377,6 +377,7 @@ bool qLocalTime(time_t utc, struct tm *local) tzset(); if (tm *res = localtime_r(&utc, local)) { Q_ASSERT(res == local); + Q_UNUSED(res); return true; } return false;