chiark
/
gitweb
/
~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
priv/helper.c (lose): Tag as NORETURN.
[tripe]
/
priv
/
helper.c
diff --git
a/priv/helper.c
b/priv/helper.c
index 6e5834ac21562b490743199d56f0a5bab1c69ab1..400fa28bcb2408631d939f54111657bb16d5c078 100644
(file)
--- a/
priv/helper.c
+++ b/
priv/helper.c
@@
-39,7
+39,7
@@
* Use: Reports a fatal error and quits.
*/
* 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,
{
moan("helper process bailing out: %s; error: %s",
excuse,
@@
-62,7
+62,7
@@
static void lose(const char *excuse)
#ifndef NTRACE
#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;
{
va_list ap;
dstr d = DSTR_INIT;
@@
-92,7
+92,7
@@
static void itrace(unsigned mask, const char *fmt, ...)
#define A_END ((char *)0)
#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;
{
va_list ap;
dstr d = DSTR_INIT, dd = DSTR_INIT;