diff options
| author | Michael Buch <michaelbuch12@gmail.com> | 2024-03-19 11:26:43 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-19 11:26:43 +0000 |
| commit | 7edfbf2af2253297f48ff8adaba99373f67e8dca (patch) | |
| tree | f4e36d1d87949ffab08622ba2b5802f95304ec19 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 00ca80938b732ee43deb2a94bec1c7efef3025d4 (diff) | |
[lldb][DataFormatter] Fix format specifiers in LibCxxSliceArray summary provider (#85763)
This caused following warnings in an LLDB build:
```
[237/1072] Building CXX object tools/l...lusLanguage.dir/LibCxxSliceArray.cpp.o
/Volumes/Data/llvm-project/lldb/source/Plugins/Language/CPlusPlus/LibCxxSliceArray.cpp:38:53: warning: format specifies type 'unsigned long long' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
38 | stream.Printf("stride=%" PRIu64 " size=%" PRIu64, stride, size);
| ~~~~~~~~~ ^~~~~~
/Volumes/Data/llvm-project/lldb/source/Plugins/Language/CPlusPlus/LibCxxSliceArray.cpp:38:61: warning: format specifies type 'unsigned long long' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
38 | stream.Printf("stride=%" PRIu64 " size=%" PRIu64, stride, size);
| ~~~~~~~~~ ^~~~
2 warnings generated.
```
This patch simply changes the format specifiers to use the `%zu` for
`size_t`s.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
