X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/blobdiff_plain/b7e1e18b57c30555f65a2548e0f1f186200c0ea8..21f48320c025745de098ca8c8b9e1e9cd8212c17:/priv/helper.c diff --git a/priv/helper.c b/priv/helper.c index c1401f12..400fa28b 100644 --- a/priv/helper.c +++ b/priv/helper.c @@ -39,7 +39,7 @@ * Use: Reports a fatal error and quits. */ -static void lose(const char *excuse) +static void NORETURN lose(const char *excuse) { moan("helper process bailing out: %s; error: %s", excuse, @@ -49,7 +49,7 @@ static void lose(const char *excuse) /*----- Diagnostic functions ----------------------------------------------*/ -/* --- @trace@ --- * +/* --- @itrace@ --- * * * Arguments: @unsigned mask@ = trace mask to check * @const char *fmt@ = message format @@ -62,7 +62,7 @@ static void lose(const char *excuse) #ifndef NTRACE -static void itrace(unsigned mask, const char *fmt, ...) +static void PRINTF_LIKE(2, 3) itrace(unsigned mask, const char *fmt, ...) { va_list ap; dstr d = DSTR_INIT; @@ -92,7 +92,7 @@ static void itrace(unsigned mask, const char *fmt, ...) #define A_END ((char *)0) -static void warn(const char *fmt, ...) +static void EXECL_LIKE(0) IGNORABLE warn(const char *fmt, ...) { va_list ap; dstr d = DSTR_INIT, dd = DSTR_INIT;