Skip to content

Commit cf1ded3

Browse files
committed
[lldb] Silence function cast warning when building with Clang ToT targetting Windows
1 parent 10e1b93 commit cf1ded3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lldb/source/Plugins/Process/Windows/Common/TargetThreadWindows.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ Status TargetThreadWindows::DoResume() {
175175
return Status();
176176
}
177177

178+
#if defined(__clang__)
179+
#pragma clang diagnostic push
180+
#pragma clang diagnostic ignored "-Wcast-function-type-mismatch"
181+
#endif
182+
178183
const char *TargetThreadWindows::GetName() {
179184
Log *log = GetLog(LLDBLog::Thread);
180185
static GetThreadDescriptionFunctionPtr GetThreadDescription = []() {
@@ -200,3 +205,7 @@ const char *TargetThreadWindows::GetName() {
200205

201206
return m_name.c_str();
202207
}
208+
209+
#if defined(__clang__)
210+
#pragma clang diagnostic pop
211+
#endif

0 commit comments

Comments
 (0)