warning
int warning = 0;
warning++;
warning++;
if (warning) {
#define _CBOR_UNUSED(x) __pragma(warning(suppress : 4100 4101)) x
warning("ambiguous port %s in /etc/services",
warning(
warning("port %s changed utmp index from %d to %d",
warning("can't parse getty for port %s",
warning("cannot disable lid action");
warning("some processes would not die; ps axl advised");
warning("some processes would not die; ps axl advised");
warning("initial setsid() failed: %m");
warning("setlogin() failed: %m");
warning("unrecognized flag '-%c'", c);
warning("ignoring excess arguments");
warning("kernel security level changed from %d to %d",
warning("single-user login failed\n");
warning("wait for single-user shell failed: %m; restarting");
warning("init: shell stopped, restarting\n");
warning("single user shell terminated.");
warning("single user shell terminated, restarting");
warning("wait for %s on %s failed: %m; going to single user mode",
warning("init: %s on %s stopped, restarting\n",
warning("%s on %s terminated abnormally, going to single user mode",
warning("can't parse getty for port %s", sp->se_device);
warning("can't allocate window");
warning("can't parse window for port %s",
void warning(char *, ...);
warning("break not in for or while");
warning("continue not in for or while");
warning("return must be in a function");
static void warning(const char *);
static void warning(char *, char *);
warning(cptr, msg);
warning(cptr, "expected a space");
warning(cptr, "wasn't expecting a space");
warning(cptr, "unexpected quote character, ignoring");
warning(cptr, "octal number greater than 7?!");
warning(cptr, "unrecognized escape sequence; ignoring escape character");
warning(cptr, "unrecognized line");
warning(cptr, "neither blank line nor start of a message id");
warning(NULL, "specified set doesn't exist");
warning(NULL, "specified msg doesn't exist");
char warning[MAXLINE];
snprintf( warning, sizeof(warning), "warning, %s", str );
line_pinpoint( warning, line );
quad_t expire, warning;
warning = login_getcaptime(lc, "expire-warn",
if (expire < warning)
if (warning == 0) {
warning = 1;
int warning;
warning = 0;
warning("whitespace after %s", ctype);
warning("unused label '%s'",
void warning(const char *, ...) __attribute__((__format__ (printf, 1, 2)));
quit(char *warning, int do_perror)
if (warning) {
warn("%s", warning);
warnx("%s", warning);
getnbrinfo(struct in6_addr *addr, int ifindex, int warning)
if (warning)
__pragma(warning(push))
__pragma(warning(disable:warning_specifier))
__pragma(warning(pop))
# define paste(flag, warning) stringify(flag ## warning)
# define diagnostic_ignored(warning) pragma(warning)
# define clang_diagnostic_ignored(warning) \
diagnostic_ignored(GCC diagnostic ignored paste(-W,warning))
# define gcc_diagnostic_ignored(warning) \
diagnostic_ignored(GCC diagnostic ignored paste(-W,warning))
# define gcc_diagnostic_ignored(warning)
# define clang_diagnostic_ignored(warning)
# define msvc_diagnostic_ignored(warning)
warning("truncated request");
warning("request fails sanity check");
warning("ether/arp sender address mismatch");
warning("ether/arp target address mismatch");
warning("cannot find %s on net %s",
warning("write: only %d of %d bytes written", n, len);
void warning(const char *, ...);
char *constraints = NULL, *warning = NULL, *cbn;
if (asprintf(&warning, "resource violates %s", cbn) == -1)
tal_constraints[talid].warn = warning;
extern void warning(const char *, ...)
warning("compensating for unaligned libpcap packets");
warning("compensating for unaligned libpcap packets");
warning("%s", ebuf);
warning("snaplen raised from %d to %d", snaplen, i);
warning("year type is obsolete; use \"-\" instead");
warning("no POSIX environment variable for zone %s",
warning("%s: pre-%d clients may mishandle"
warning("%s (%s)", mp, string);
warning("ignoring obsolescent option -y");
warning("link to link");
warning("same rule name in multiple files");
warning("same rule name in multiple files");
warning("format '%%z' not handled by pre-2015 versions "