File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
source/Plugins/ScriptInterpreter/Python
unittests/ScriptInterpreter/Python Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -77,11 +77,23 @@ extern "C" void init_lldb(void);
77
77
#pragma clang diagnostic push
78
78
#pragma clang diagnostic ignored "-Wreturn-type-c-linkage"
79
79
80
+ // Disable warning C4190: 'LLDBSwigPythonBreakpointCallbackFunction' has
81
+ // C-linkage specified, but returns UDT 'llvm::Expected<bool>' which is
82
+ // incompatible with C
83
+ #if _MSC_VER
84
+ #pragma warning (push)
85
+ #pragma warning (disable : 4190)
86
+ #endif
87
+
80
88
extern " C" llvm::Expected<bool > LLDBSwigPythonBreakpointCallbackFunction (
81
89
const char *python_function_name, const char *session_dictionary_name,
82
90
const lldb::StackFrameSP &sb_frame,
83
91
const lldb::BreakpointLocationSP &sb_bp_loc, StructuredDataImpl *args_impl);
84
92
93
+ #if _MSC_VER
94
+ #pragma warning (pop)
95
+ #endif
96
+
85
97
#pragma clang diagnostic pop
86
98
87
99
extern " C" bool LLDBSwigPythonWatchpointCallbackFunction (
Original file line number Diff line number Diff line change @@ -62,6 +62,14 @@ extern "C" void init_lldb(void) {}
62
62
#pragma clang diagnostic push
63
63
#pragma clang diagnostic ignored "-Wreturn-type-c-linkage"
64
64
65
+ // Disable warning C4190: 'LLDBSwigPythonBreakpointCallbackFunction' has
66
+ // C-linkage specified, but returns UDT 'llvm::Expected<bool>' which is
67
+ // incompatible with C
68
+ #if _MSC_VER
69
+ #pragma warning (push)
70
+ #pragma warning (disable : 4190)
71
+ #endif
72
+
65
73
extern " C" llvm::Expected<bool > LLDBSwigPythonBreakpointCallbackFunction (
66
74
const char *python_function_name, const char *session_dictionary_name,
67
75
const lldb::StackFrameSP &sb_frame,
@@ -70,6 +78,10 @@ extern "C" llvm::Expected<bool> LLDBSwigPythonBreakpointCallbackFunction(
70
78
return false ;
71
79
}
72
80
81
+ #if _MSC_VER
82
+ #pragma warning (pop)
83
+ #endif
84
+
73
85
#pragma clang diagnostic pop
74
86
75
87
extern " C" bool LLDBSwigPythonWatchpointCallbackFunction (
You can’t perform that action at this time.
0 commit comments