diff options
| author | Mårten Nordheim <marten.nordheim@qt.io> | 2023-02-25 14:58:53 +0100 |
|---|---|---|
| committer | Mårten Nordheim <marten.nordheim@qt.io> | 2023-02-27 12:10:43 +0100 |
| commit | acc6dc9c09ae778bced33c01f0a767f291cd279f (patch) | |
| tree | 37aa5d7a29bf8c61829ddcb40a1d79ccb03ad736 /src/corelib/global/qtenvironmentvariables.cpp | |
| parent | 276bf8cb239a678e9c9b4b5b36cfa7015780b292 (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.cpp | 1 |
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; |
