mu-cmd-index: Avoid unneeded compiler warning

This commit is contained in:
Dirk-Jan C. Binnema 2020-02-01 13:51:51 +02:00
parent ac4f5f754a
commit ee4730382d
1 changed files with 5 additions and 2 deletions

View File

@ -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);