summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qtenvironmentvariables.cpp
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2023-02-25 14:58:53 +0100
committerMårten Nordheim <marten.nordheim@qt.io>2023-02-27 12:10:43 +0100
commitacc6dc9c09ae778bced33c01f0a767f291cd279f (patch)
tree37aa5d7a29bf8c61829ddcb40a1d79ccb03ad736 /src/corelib/global/qtenvironmentvariables.cpp
parent276bf8cb239a678e9c9b4b5b36cfa7015780b292 (diff)
Mark variable only used in Q_ASSERT as unused
Change-Id: Idee2a4772c7c12e293838a647ed768295612f794 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/global/qtenvironmentvariables.cpp')
-rw-r--r--src/corelib/global/qtenvironmentvariables.cpp1
1 files changed, 1 insertions, 0 deletions
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;