git: 2d92e58b68e1 - stable/14 - libarchive: fix null format string error in tests (unbreaks gcc13 build)

From: Martin Matuska <mm_at_FreeBSD.org>
Date: Tue, 30 Apr 2024 07:56:16 UTC
The branch stable/14 has been updated by mm:

URL: https://cgit.FreeBSD.org/src/commit/?id=2d92e58b68e1bcade3d4097660c24afb64811ddf

commit 2d92e58b68e1bcade3d4097660c24afb64811ddf
Author:     Martin Matuska <mm@FreeBSD.org>
AuthorDate: 2024-04-17 07:33:13 +0000
Commit:     Martin Matuska <mm@FreeBSD.org>
CommitDate: 2024-04-30 06:47:22 +0000

    libarchive: fix null format string error in tests (unbreaks gcc13 build)
    
    Obtained from:  libarchive (d43c39247)
    
    (cherry picked from commit 701d0666c03dacba9b73d91dff2a6140e157bdc4)
---
 contrib/libarchive/libarchive/test/test_compat_lzip.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/contrib/libarchive/libarchive/test/test_compat_lzip.c b/contrib/libarchive/libarchive/test/test_compat_lzip.c
index d3b8b118322b..1420e5bb9ac0 100644
--- a/contrib/libarchive/libarchive/test/test_compat_lzip.c
+++ b/contrib/libarchive/libarchive/test/test_compat_lzip.c
@@ -195,7 +195,6 @@ compat_lzip_4(const char *name)
 	assertEqualString("test.bin", archive_entry_pathname(ae));
 
 	/* Verify the end-of-archive. */
-	archive_set_error(a, ARCHIVE_OK, NULL);
 	assertEqualIntA(a, ARCHIVE_EOF, archive_read_next_header(a, &ae));
 
 	/* Verify that the format detection worked. */