diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-05-12 14:46:23 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-05-12 15:03:20 (EDT) |
commit | 6b190def9f25b79a672afb2793afa346150d274c (patch) | |
tree | b3965d4608796c9f9b98ffed84facc07186c17a5 /src/opk | |
parent | 2191f519c71bcd483776838fd03c0641ef061f83 (diff) |
opk/read: Ignore -Wmaybe-uninitialized false pos
Diffstat (limited to 'src/opk')
-rw-r--r-- | src/opk/read.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/opk/read.c b/src/opk/read.c index 9a2a3a4..1e9295b 100644 --- a/src/opk/read.c +++ b/src/opk/read.c @@ -204,10 +204,14 @@ _opkg_opk_opk_read_control(struct opkg_opk_opk *opk) return OPKG_OPK_ERROR; # pragma GCC diagnostic pop } +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored \ + "-Wmaybe-uninitialized" /* For below #pragmas: fp initialized here * (opk->control_dir != NULL). */ /* GCC analyzer doesn't complain about this use of path? */ fp = fopen(path, "wb"); +# pragma GCC diagnostic pop if (fp == NULL) { fputs(_("Error: Failed to extract control file" "\n"), stderr); @@ -277,6 +281,8 @@ _opkg_opk_opk_read_control(struct opkg_opk_opk *opk) # pragma GCC diagnostic push # pragma GCC diagnostic ignored \ "-Wanalyzer-use-of-uninitialized-value" +# pragma GCC diagnostic ignored \ + "-Wmaybe-uninitialized" free(path); fclose(fp); # pragma GCC diagnostic pop |