summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2022-09-27 07:23:44 -0700
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-09-28 16:26:33 +0000
commitf5dda2390f4a799e802a19758b3030f991e5209e (patch)
treefbba83396e74a6a21368fce2a25cc684521514db
parentea730ed5992117ae85027e044f8eb0bc443999c3 (diff)
downloadqtbase-f5dda2390f4a799e802a19758b3030f991e5209e.tar.gz
Logging: remove const from the lambda calling dladdr
In some OSes, the function takes a plain void*. Fixes: QTBUG-106980 Change-Id: I810d70e579eb4e2c8e45fffd1718bdaf94d8ac0e Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit 7d7d4671bd641634bd7ab8fd523ca96f7cda95ee) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/corelib/global/qlogging.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp
index ad43c89724..dc169ce5fc 100644
--- a/src/corelib/global/qlogging.cpp
+++ b/src/corelib/global/qlogging.cpp
@@ -1302,7 +1302,7 @@ static QStringList backtraceFramesForLogMessage(int frameCount)
// use dladdr() instead of backtrace_symbols()
QString cachedLibrary;
const char *cachedFname = nullptr;
- auto decodeFrame = [&](const void *addr) -> DecodedFrame {
+ auto decodeFrame = [&](void *addr) -> DecodedFrame {
Dl_info info;
if (!dladdr(addr, &info))
return {};