tree-wide: Squash some clang-analyzer found unused variables

We weren't using the return values, so just drop them.
This commit is contained in:
Colin Walters 2021-02-05 14:31:40 +00:00 committed by OpenShift Merge Robot
parent 4d2a6e6de0
commit 5cefee81ff
2 changed files with 2 additions and 2 deletions

View File

@ -3716,7 +3716,7 @@ apply_rpmfi_overrides (RpmOstreeContext *self,
if (!get_package_metainfo (self, path, NULL, &fi, error))
return FALSE;
while ((i = rpmfiNext (fi)) >= 0)
while (rpmfiNext (fi) >= 0)
{
const char *fn = rpmfiFN (fi);
const char *user = rpmfiFUser (fi) ?: "root";

View File

@ -169,7 +169,7 @@ rpmostree_importer_read_metainfo (int fd,
goto out;
}
if ((r = rpmReadPackageFile (ts, rpmfd, abspath, &ret_header)) != RPMRC_OK)
if (rpmReadPackageFile (ts, rpmfd, abspath, &ret_header) != RPMRC_OK)
{
g_set_error (error,
G_IO_ERROR,