From ee4730382dc0b70fcddac14d32b2acb632fbb538 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sat, 1 Feb 2020 13:51:51 +0200 Subject: [PATCH] mu-cmd-index: Avoid unneeded compiler warning --- mu/mu-cmd-index.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mu/mu-cmd-index.c b/mu/mu-cmd-index.c index dbe190c4..ea881e0a 100644 --- a/mu/mu-cmd-index.c +++ b/mu/mu-cmd-index.c @@ -255,7 +255,7 @@ cleanup_missing (MuIndex *midx, MuConfig *opts, MuIndexStats *stats, static void index_title (MuStore *store, MuConfig *opts) { - const char *green, *def; + const char *green, *def; char **addrs; int i; time_t created; @@ -272,8 +272,11 @@ index_title (MuStore *store, MuConfig *opts) created = mu_store_created (store); tstamp = localtime (&created); - strftime (tbuf, sizeof(tbuf), "%c", tstamp); +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wformat-y2k" + strftime (tbuf, sizeof(tbuf), "%c", tstamp); +#pragma GCC diagnostic pop g_print ("created : %s%s%s\n", green, tbuf, def); g_print ("maildir : %s%s%s\n", green, mu_store_maildir (store), def);