diff options
author | Patrick 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) |
commit | 8c32a08f86ef167134986282907683cf08ad562e (patch) | |
tree | 43cdd205e0bf69fb97ba961584626202abbe49c5 /src | |
parent | 2dfff6604492b72f3dd990571e2925a8cea746f5 (diff) |
opk: Ignore -Wformat-nonliteral
Diffstat (limited to 'src')
-rw-r--r-- | src/opk.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |