[all-commits] [llvm/llvm-project] daf369: [lldb] Ignore linkage diagnostic for LLDBSwigPytho...
Dave Lee via All-commits
all-commits at lists.llvm.org
Wed Mar 10 14:16:24 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: daf36998694fd9a0beaf7e1659ae41a6d1079107
https://github.com/llvm/llvm-project/commit/daf36998694fd9a0beaf7e1659ae41a6d1079107
Author: Dave Lee <davelee.com at gmail.com>
Date: 2021-03-10 (Wed, 10 Mar 2021)
Changed paths:
M lldb/bindings/python/python-wrapper.swig
Log Message:
-----------
[lldb] Ignore linkage diagnostic for LLDBSwigPythonBreakpointCallbackFunction (NFC)
Ignore `-Wreturn-type-c-linkage` diagnostics for `LLDBSwigPythonBreakpointCallbackFunction`.
The function is defined in `python-wrapper.swig` which uses `extern "C" { ... }` blocks.
The declaration of this function in `ScriptInterpreterPython.cpp` already uses these
same pragmas to silence the warning there.
This prevents `-Werror` builds from failing.
Differential Revision: https://reviews.llvm.org/D98368
More information about the All-commits
mailing list