summaryrefslogtreecommitdiffstats
path: root/ui.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-01-01 23:54:20 +0100
committerMattias Andrée <maandree@kth.se>2022-01-01 23:54:20 +0100
commit76a8994bd5d58138542e7bb0ce8dd0ceef778891 (patch)
tree99a6cd09ac8c1ec5dffb64bb510d205560f0cdc3 /ui.c
parentMove some functions into makefile.c (diff)
downloadmakel-76a8994bd5d58138542e7bb0ce8dd0ceef778891.tar.gz
makel-76a8994bd5d58138542e7bb0ce8dd0ceef778891.tar.bz2
makel-76a8994bd5d58138542e7bb0ce8dd0ceef778891.tar.xz
Lint line continuation and whitespace issues
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/ui.c b/ui.c
index 610729b..1afff76 100644
--- a/ui.c
+++ b/ui.c
@@ -46,3 +46,16 @@ printerrorf(const char *fmt, ...)
va_end(ap);
exit(EXIT_CRITICAL);
}
+
+
+void
+printtipf(enum warning_class class, const char *fmt, ...)
+{
+ va_list ap;
+ if (warning_classes[class].action != IGNORE) {
+ va_start(ap, fmt);
+ fprintf(stderr, "%s: [tip] ", argv0);
+ vfprintf(stderr, fmt, ap);
+ va_end(ap);
+ }
+}