diff options
author | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2019-12-03 09:53:26 -0500 |
---|---|---|
committer | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2019-12-03 09:53:26 -0500 |
commit | 1cc0ba4cbdc54200e1b3c65e83e51a5368a819ea (patch) | |
tree | 0959adc78d4034e2df0295bca1969f876d890651 /lldb/unittests/ScriptInterpreter | |
parent | 8bf31e28d7b6eb5743bda82fc5f8a98152b50e57 (diff) | |
download | bcm5719-llvm-1cc0ba4cbdc54200e1b3c65e83e51a5368a819ea.tar.gz bcm5719-llvm-1cc0ba4cbdc54200e1b3c65e83e51a5368a819ea.zip |
[LLDB] Disable MSVC warning C4190: 'LLDBSwigPythonBreakpointCallbackFunction' has C-linkage specified, but returns UDT 'llvm::Expected<bool>' which is incompatible with C
Differential Revision: https://reviews.llvm.org/D70830
Diffstat (limited to 'lldb/unittests/ScriptInterpreter')
-rw-r--r-- | lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp b/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp index 12ffdfe79ec..8bc510bd989 100644 --- a/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp +++ b/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp @@ -62,6 +62,14 @@ extern "C" void init_lldb(void) {} #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wreturn-type-c-linkage" +// Disable warning C4190: 'LLDBSwigPythonBreakpointCallbackFunction' has +// C-linkage specified, but returns UDT 'llvm::Expected<bool>' which is +// incompatible with C +#if _MSC_VER +#pragma warning (push) +#pragma warning (disable : 4190) +#endif + extern "C" llvm::Expected<bool> LLDBSwigPythonBreakpointCallbackFunction( const char *python_function_name, const char *session_dictionary_name, const lldb::StackFrameSP &sb_frame, @@ -70,6 +78,10 @@ extern "C" llvm::Expected<bool> LLDBSwigPythonBreakpointCallbackFunction( return false; } +#if _MSC_VER +#pragma warning (pop) +#endif + #pragma clang diagnostic pop extern "C" bool LLDBSwigPythonWatchpointCallbackFunction( |