diff options
author | Mattias Andrée <maandree@kth.se> | 2022-01-01 23:54:20 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-01-01 23:54:20 +0100 |
commit | 76a8994bd5d58138542e7bb0ce8dd0ceef778891 (patch) | |
tree | 99a6cd09ac8c1ec5dffb64bb510d205560f0cdc3 /ui.c | |
parent | Move some functions into makefile.c (diff) | |
download | makel-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.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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); + } +} |