summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/opk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/opk.c b/src/opk.c
index 015ad96..6d31185 100644
--- a/src/opk.c
+++ b/src/opk.c
@@ -306,12 +306,15 @@ opkg_opk_opk_list_members(struct opkg_opk_opk *opk)
mode[9] = '\0';
strftime(mtime, sizeof(mtime), "%Y-%m-%d %H:%M:%S",
localtime(&member->mtime));
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
if (printf(fmt, member->type, mode,
member->uname, member->gname,
member->size, mtime, member->name) !=
(int) (len + strlen(member->name))) {
ret = OPKG_OPK_ERROR;
}
+#pragma GCC diagnostic pop
head = member;
member = member->next;
free(head);