#define ACTIVATE_WARNING_PRAGMAS
#endif
#endif
+#if defined(__clang__) && defined(__cplusplus)
+#ifndef ACTIVATE_WARNING_PRAGMAS
+#define ACTIVATE_WARNING_PRAGMAS
+#endif
+#endif
#ifdef ACTIVATE_WARNING_PRAGMAS
#if defined(__clang__)
boolean panicking;
void panic(const char *, ...);
+DISABLE_WARNING_FORMAT_NONLITERAL
+
void panic
VA_DECL(const char *, str)
{
exit(EXIT_FAILURE); /* redundant */
}
+RESTORE_WARNING_FORMAT_NONLITERAL
+
#ifdef ALLOCA_HACK
/*
* In case bison-generated foo_yacc.c tries to use alloca(); if we don't
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()
{
}
}
+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
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
(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,
swap_fg_bg(w);
}
+DISABLE_WARNING_FORMAT_NONLITERAL
+
static void
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