Skip to content

[lldb] Ignore linkage diagnostic for LLDBSwigPythonBreakpointCallbackFunction (NFC) #2660

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

kastiglione
Copy link

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

(cherry picked from commit daf3699)

…Function (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

(cherry picked from commit daf3699)
@kastiglione
Copy link
Author

@swift-ci test

@fredriss fredriss merged commit 6522ad5 into apple/stable/20210107 Mar 10, 2021
@kastiglione kastiglione deleted the lldb-Ignore-linkage-diagnostic-for-LLDBSwigPythonBreakpointCallbackFunction-NFC branch March 10, 2021 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants