diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2022-09-27 07:23:44 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2022-09-27 16:19:27 -0700 |
commit | 7d7d4671bd641634bd7ab8fd523ca96f7cda95ee (patch) | |
tree | 5a9d489bb52b2c8761741f66c271cbf028ee4c61 | |
parent | 7fea2d34fb3e9d13deb584595d119c870389b912 (diff) |
Logging: remove const from the lambda calling dladdr
In some OSes, the function takes a plain void*.
Pick-to: 6.4
Fixes: QTBUG-106980
Change-Id: I810d70e579eb4e2c8e45fffd1718bdaf94d8ac0e
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
-rw-r--r-- | src/corelib/global/qlogging.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp index 1c469d28fb..e2bfbafe4e 100644 --- a/src/corelib/global/qlogging.cpp +++ b/src/corelib/global/qlogging.cpp @@ -1332,7 +1332,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 {}; |