Skip to content

Commit

Permalink
[lldb] Silence function cast warning when building with Clang ToT tar…
Browse files Browse the repository at this point in the history
…getting Windows
  • Loading branch information
aganea committed Jul 6, 2024
1 parent 10e1b93 commit cf1ded3
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,11 @@ Status TargetThreadWindows::DoResume() {
return Status();
}

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wcast-function-type-mismatch"
#endif

const char *TargetThreadWindows::GetName() {
Log *log = GetLog(LLDBLog::Thread);
static GetThreadDescriptionFunctionPtr GetThreadDescription = []() {
Expand All @@ -200,3 +205,7 @@ const char *TargetThreadWindows::GetName() {

return m_name.c_str();
}

#if defined(__clang__)
#pragma clang diagnostic pop
#endif

0 comments on commit cf1ded3

Please sign in to comment.