X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=src%2Fcommon.h;h=b4106f69b6c9dc9a38c4fc4926f1d5fe826e9cf9;hb=0a7ead9db7967764f0d93d30f9a83c94cb6fc358;hp=268a9fea0fb89ae9fb41604dc64b76e003c141e7;hpb=23c77cc092dbbb1e12c47c2b0021d4476b543702;p=rrq%2Fmaintain_lilo.git diff --git a/src/common.h b/src/common.h index 268a9fe..b4106f6 100644 --- a/src/common.h +++ b/src/common.h @@ -396,11 +396,12 @@ extern int dm_major_nr; #define comma (cc(First)|cc(Second)|cc(Third)|cc(Bitmap)|cc(Chain)|cc(Mbr)|cc(Mbr2)) -/*volatile*/ void pdie(char *msg); +/*volatile*/ void pdie(const char *msg) __attribute__ ((noreturn)); /* Do a perror and then exit. */ -/*volatile*/ void die(char *fmt,...); +/*volatile*/ void __attribute__ ((format (printf, 1, 2))) + __attribute__ ((noreturn)) die(const char *fmt,...); /* fprintf an error message and then exit. */