Skip to content

Commit

Permalink
multiint.cpp: Silence GCC Wstringop-overflow warning
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Sep 8, 2023
1 parent 1f0ff65 commit 4c30471
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/multiint.cpp
Expand Up @@ -7202,6 +7202,11 @@ void calcBackdropLayoutForMultiplayerOptionsTitleUI(WIDGET *psWidget)
);
}

#if defined(__GNUC__) && !defined(__INTEL_COMPILER) && !defined(__clang__) && (12 <= __GNUC__)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wstringop-overflow" // Ignore on GCC 12+`
#endif

void WzMultiplayerOptionsTitleUI::start()
{
const bool bReenter = performedFirstStart;
Expand Down Expand Up @@ -7320,6 +7325,10 @@ void WzMultiplayerOptionsTitleUI::start()
}
}

#if defined(__GNUC__) && !defined(__INTEL_COMPILER) && !defined(__clang__) && (12 <= __GNUC__)
# pragma GCC diagnostic pop
#endif

std::shared_ptr<WzTitleUI> WzMultiplayerOptionsTitleUI::getParentTitleUI()
{
return parent;
Expand Down

0 comments on commit 4c30471

Please sign in to comment.