@@ -42,7 +42,7 @@
const char *lafe_progname;
-static void
+static __printflike(2, 0) void
lafe_vwarnc(int code, const char *fmt, va_list ap)
{
fprintf(stderr, "%s: ", lafe_progname);
@@ -35,7 +35,8 @@
extern const char *lafe_progname;
-void lafe_warnc(int code, const char *fmt, ...);
-void lafe_errc(int eval, int code, const char *fmt, ...) __LA_DEAD;
+void lafe_warnc(int code, const char *fmt, ...) __printflike(2, 3);
+void lafe_errc(int eval, int code, const char *fmt, ...)
+ __LA_DEAD __printflike(3, 4);
#endif