From 8c32a08f86ef167134986282907683cf08ad562e Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 20 Apr 2023 16:06:33 -0400 Subject: opk: Ignore -Wformat-nonliteral --- (limited to 'src') 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); -- cgit v0.9.1