more macOS whitelisting

X11, Qt, and util

also ensure the functional warnings.h macro definitions are used
with c++ clang compiler
This commit is contained in:
nhmall
2021-02-02 20:11:43 -05:00
parent 9684b75f54
commit 6f3337b75a
4 changed files with 21 additions and 0 deletions

View File

@@ -565,6 +565,8 @@ QHBoxLayout *NetHackQtStatusWindow::InitHitpointBar()
return hpbar; // caller will add our result to vbox layout
}
DISABLE_WARNING_FORMAT_NONLITERAL
// when hitpoint bar is enabled, calculate and draw it, otherwise remove it
void NetHackQtStatusWindow::HitpointBar()
{
@@ -665,6 +667,8 @@ void NetHackQtStatusWindow::HitpointBar()
}
}
RESTORE_WARNING_FORMAT_NONLITERAL
/*
* Update the displayed status. The current code in botl.c updates
* two lines of information. Both lines are always updated one after