summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLuca Bruno <lucab@redhat.com>2021-04-08 14:54:42 +0000
committerGitHub <noreply@github.com>2021-04-08 14:54:42 +0000
commit6dca0e0e29ae9f5cc38196a1fd31ab0b0fc18f43 (patch)
tree2fc362557031d726ecda3014f1d7772c7d712e29 /tests
parent078f022cfe6fab8c441262f6824c974dfaa551f7 (diff)
parent5d68a99a2f59ec1236cf4604874f95d136509b8d (diff)
downloadostree-6dca0e0e29ae9f5cc38196a1fd31ab0b0fc18f43.tar.gz
Merge pull request #2330 from cgwalters/silence-libarchive-warning
tests: Silence a gcc warning
Diffstat (limited to 'tests')
-rw-r--r--tests/test-libarchive-import.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test-libarchive-import.c b/tests/test-libarchive-import.c
index 75b298bc..821a8869 100644
--- a/tests/test-libarchive-import.c
+++ b/tests/test-libarchive-import.c
@@ -510,6 +510,7 @@ test_libarchive_xattr_import_skip_xattr (gconstpointer data)
GError *error = NULL;
g_autoptr(OtAutoArchiveRead) a = archive_read_new ();
OstreeRepoImportArchiveOptions opts = { 0 };
+ g_autoptr(OstreeRepoCommitModifier) modifier = NULL;
if (skip_if_no_xattr (td))
goto out;
@@ -524,7 +525,7 @@ test_libarchive_xattr_import_skip_xattr (gconstpointer data)
opts.ignore_unsupported_content = TRUE;
- g_autoptr(OstreeRepoCommitModifier) modifier = ostree_repo_commit_modifier_new (
+ modifier = ostree_repo_commit_modifier_new (
OSTREE_REPO_COMMIT_MODIFIER_FLAGS_SKIP_XATTRS, NULL, NULL, NULL);
if (!import_write_and_ref (td->repo, &opts, a, "baz", modifier, &error))
goto out;