Remove errx and errors.hpp (#1737)

This commit is contained in:
Rangi authored and GitHub committed 2025-07-09 11:04:23 -04:00
1 parent 9acba4b412
commit 5e43ece578
179 files changed
+366 -393

No files matched your search

+9
View File
@@ -1,5 +1,14 @@
#include "diagnostics.hpp"
void warnx(char const *fmt, ...) {
va_list ap;
fputs("warning: ", stderr);
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
va_end(ap);
putc('\n', stderr);
}
void WarningState::update(WarningState other) {
if (other.state != WARNING_DEFAULT) {
state = other.state;