From 8042464eb99542c9421a98cce16164a55d0766ac Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 30 Jul 2023 22:22:52 -0400 Subject: opk/read: Only ignore analyzer warnings in new GCC https://gcc.gnu.org/wiki/StaticAnalyzer Fixes the following warnings with older GCC versions: opkg-opk/opk/read.c: In function ‘_opkg_opk_opk_read_control’: opkg-opk/opk/read.c:159:5: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas] "-Wanalyzer-use-of-uninitialized-value" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ opkg-opk/opk/read.c:187:6: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas] "-Wanalyzer-use-of-uninitialized-value" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ opkg-opk/opk/read.c:198:5: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas] "-Wanalyzer-use-of-uninitialized-value" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ opkg-opk/opk/read.c:222:6: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas] "-Wanalyzer-use-of-uninitialized-value" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ opkg-opk/opk/read.c:265:5: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas] "-Wanalyzer-use-of-uninitialized-value" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ opkg-opk/opk/read.c:282:6: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas] "-Wanalyzer-use-of-uninitialized-value" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ opkg-opk/opk/read.c:290:35: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas] # pragma GCC diagnostic ignored "-Wanalyzer-file-leak" ^~~~~~~~~~~~~~~~~~~~~~ opkg-opk/opk/read.c:300:5: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas] "-Wanalyzer-use-of-uninitialized-value" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ opkg-opk/opk/read.c:313:4: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas] "-Wanalyzer-use-of-uninitialized-value" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- (limited to 'src/ustar.c') -- cgit v0.9.1