This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Ignore linkage diagnostic for LLDBSwigPythonBreakpointCallbackFunction (NFC)
ClosedPublic

Authored by kastiglione on Mar 10 2021, 12:51 PM.

Details

Summary

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.

Diff Detail

Event Timeline

kastiglione requested review of this revision.Mar 10 2021, 12:51 PM
kastiglione created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMar 10 2021, 12:51 PM
JDevlieghere accepted this revision.Mar 10 2021, 1:33 PM
This revision is now accepted and ready to land.Mar 10 2021, 1:33 PM
This revision was landed with ongoing or failed builds.Mar 10 2021, 2:16 PM
This revision was automatically updated to reflect the committed changes.