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
+8
View File
@@ -642,6 +642,8 @@ tt_status_fixup(void)
XtGetValues(X11_status_labels[0], args, num_args);
}
DISABLE_WARNING_FORMAT_NONLITERAL
/* core requests updating one status field (or is indicating that it's time
to flush all updated fields); tty-style handling */
static void
@@ -810,6 +812,8 @@ X11_status_update_tty(int fld, genericptr_t ptr, int chg UNUSED, int percent,
(void) XFlush(XtDisplay(X11_status_labels[0]));
}
RESTORE_WARNING_FORMAT_NONLITERAL
/*ARGSUSED*/
static void
X11_status_update_fancy(int fld, genericptr_t ptr, int chg UNUSED,
@@ -1444,6 +1448,8 @@ hilight_label(Widget w) /* label widget */
swap_fg_bg(w);
}
DISABLE_WARNING_FORMAT_NONLITERAL
static void
update_val(struct X_status_value *attr_rec, long new_value)
{
@@ -1652,6 +1658,8 @@ update_val(struct X_status_value *attr_rec, long new_value)
}
}
RESTORE_WARNING_FORMAT_NONLITERAL
/* overloaded condition is being cleared without going through update_val()
so that an alternate can be shown; put this one back to default settings */
static void