summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-04-20 16:06:33 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-04-20 16:06:33 (EDT)
commit8c32a08f86ef167134986282907683cf08ad562e (patch)
tree43cdd205e0bf69fb97ba961584626202abbe49c5 /src
parent2dfff6604492b72f3dd990571e2925a8cea746f5 (diff)
opk: Ignore -Wformat-nonliteral
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);