diff options
| author | David Spickett <david.spickett@linaro.org> | 2024-08-19 15:16:04 +0000 |
|---|---|---|
| committer | David Spickett <david.spickett@linaro.org> | 2024-08-19 15:16:04 +0000 |
| commit | b1d75fe48c940ba677614db3d891fbebcb8a41a2 (patch) | |
| tree | 0cb920feda67f43b729190d6de30c36085fe4ec3 /lldb/source/Plugins/ScriptInterpreter/Python | |
| parent | b64e7e07e544d62ab132fc9f5c4153d4807a5fa3 (diff) | |
[lldb][test] Fix cast dropping const warnin in TestBreakpointSetCallback.cpp
When building with gcc I get this warning:
```
<...>TestBreakpointSetCallback.cpp:58:25: warning: cast from type ‘const char*’ to type ‘void*’ casts away qualifiers [-Wcast-qual]
58 | void *baton = (void *)"hello";
| ^~~~~~~
```
Use the address of a mutable global variable instead. All we care about
is that the address passed as the baton is the same one we get later.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions
