[Lldb-commits] [lldb] Reland "[lldb][RPC] Upstream lldb-rpc-gen tool" (#146969)" Attempt 2 (PR #148996)

Martin Storsjö via lldb-commits lldb-commits at lists.llvm.org
Fri Jul 25 13:00:11 PDT 2025


mstorsjo wrote:

Also, another less fatal annoyance: If compiling LLDB with GCC, this now produces warnings like these:
```
[1/78] Processing file /home/martin/code/llvm-project/lldb/include/lldb/API/SBAddress.h.
warning: unknown warning option '-Wno-class-memaccess'; did you mean '-Wno-class-varargs'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-stringop-truncation'; did you mean '-Wno-format-truncation'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-class-memaccess'; did you mean '-Wno-class-varargs'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-stringop-truncation'; did you mean '-Wno-format-truncation'? [-Wunknown-warning-option]
2 warnings generated.
```

Whatever processing is done on these flags, seem to be using compiler warning flags that aren't recognized in this context. E.g. `-Wno-class-memaccess` probably only works for C++ files, but not for files interpreted as C. But `-Wno-stringop-truncation` should probably be ok for C compilation, as long as this isn't just a preprocessor execution I think?

https://github.com/llvm/llvm-project/pull/148996


More information about the lldb-commits mailing list