[tz] [PROPOSED] zic: omit pre-2017c chatter unless -v
Paul Eggert
eggert at cs.ucla.edu
Thu May 16 20:54:41 UTC 2019
* zic.c (byword): Put pre-2017c warnings in the same category as
other pre-2015 etc. warnings: that is, output the warnings only if
-v is given.
---
zic.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/zic.c b/zic.c
index 4bafe5d..5b932dc 100644
--- a/zic.c
+++ b/zic.c
@@ -3140,8 +3140,8 @@ byword(const char *word, const struct lookup *table)
else return NULL; /* multiple inexact matches */
}
- /* Warn about any backward-compatibility issue with pre-2017c zic. */
- if (foundlp) {
+ if (foundlp && noise) {
+ /* Warn about any backward-compatibility issue with pre-2017c zic. */
bool pre_2017c_match = false;
for (lp = table; lp->l_word; lp++)
if (itsabbr(word, lp->l_word)) {
--
2.21.0
More information about the tz
mailing list