From 3f708772947a4ee7905bc70b1545adfe03719322 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 5 Mar 2023 14:11:24 -0600 Subject: [PATCH] llvm warns without an extra ,0 and gcc now warns _with_ the extra ,0 (because it distinguishes between "1" and "true" for no obvious reason) so switch to a puts variant. --- toys/posix/ls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/posix/ls.c b/toys/posix/ls.c index 9d3e99a3..42af7243 100644 --- a/toys/posix/ls.c +++ b/toys/posix/ls.c @@ -390,7 +390,7 @@ static void listfiles(int dirfd, struct dirtree *indir) xputc('\n'); width = 0; } else { - printf(" "+FLAG(m), 0); // shut up the stupid compiler + xputsn(" "+FLAG(m)); width += 2-FLAG(m); } } -- 2.39.2