From 506c330d35400bfcfbec6b5806e49c89c31c1e4e Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 7 Jun 2020 16:30:34 -0400 Subject: Replace __printflike with __attribute__((format(printf, ...))) sed -E 's/__printf0?like[(]([^,]+), ([^)]+)[)]/__attribute__((format(printf, \1, \2)))/' --- bin/1sh/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/1sh/test.c') diff --git a/bin/1sh/test.c b/bin/1sh/test.c index 71c62e11..54c16eef 100644 --- a/bin/1sh/test.c +++ b/bin/1sh/test.c @@ -38,7 +38,7 @@ #else #include -static void error(const char *, ...) __attribute__((noreturn)) __printf0like(1, 2); +static void error(const char *, ...) __attribute__((noreturn)) __attribute__((format(printf, 1, 2))); static void error(const char *msg, ...) -- cgit 1.4.1