From 3c0a73822dd173b47ac5c04935b64af552093a44 Mon Sep 17 00:00:00 2001 From: Larry Doolittle Date: Mon, 8 May 2017 21:56:38 -0700 Subject: Give clang one less thing to complain about "s"[i<2] and "s" + (i<2) are literally identical, but the latter triggers a warning from clang because it looks so much like a noob is trying to concatenate an integer and a string. The former is arguably more clear. --- tccpe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tccpe.c') diff --git a/tccpe.c b/tccpe.c index 1337de8..cecdd37 100644 --- a/tccpe.c +++ b/tccpe.c @@ -965,7 +965,7 @@ static void pe_build_exports(struct pe_info *pe) } else { fprintf(op, "LIBRARY %s\n\nEXPORTS\n", dllname); if (pe->s1->verbose) - printf("<- %s (%d symbol%s)\n", buf, sym_count, "s" + (sym_count < 2)); + printf("<- %s (%d symbol%s)\n", buf, sym_count, "s"[sym_count < 2]); } #endif -- cgit v1.3.1