From 35eca590ad490d6f2b53b8a2e7dd0ce2fbabe710 Mon Sep 17 00:00:00 2001 From: Micah Cowan Date: Thu, 25 Oct 2007 08:59:30 +0200 Subject: [PATCH] Tell xgettext that "ARG1 % ARG2" is not a C format string. * src/expr.c (usage): Add a comment to override xgettext's default behavior, which would classify "ARG1 % ARG2" as a fprintf-style format string. --- ChangeLog | 7 +++++++ src/expr.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9377791150..b70dd91309 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-10-24 Micah Cowan + + Tell xgettext that "ARG1 % ARG2" is not a C format string. + * src/expr.c (usage): Add a comment to override xgettext's default + behavior, which would classify "ARG1 % ARG2" as a fprintf-style + format string. + 2007-10-24 Jim Meyering Avoid diagnostics from sha1sum when there is no cached checksum. diff --git a/src/expr.c b/src/expr.c index c800065c62..cd498f6451 100644 --- a/src/expr.c +++ b/src/expr.c @@ -128,6 +128,8 @@ separates increasing precedence groups. EXPRESSION may be:\n\ ARG1 + ARG2 arithmetic sum of ARG1 and ARG2\n\ ARG1 - ARG2 arithmetic difference of ARG1 and ARG2\n\ "), stdout); + /* Tell xgettext that the "% A" below is not a printf-style + format string: xgettext:no-c-format */ fputs (_("\ \n\ ARG1 * ARG2 arithmetic product of ARG1 and ARG2\n\ -- 2.47.2