From 8ad2acf352d790d0bdd792b8e126d58a088451f3 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 17 Jan 2022 23:59:46 +0100 Subject: fix "defined but not used" warnings Signed-off-by: Denys Vlasenko --- archival/libarchive/get_header_tar.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'archival') diff --git a/archival/libarchive/get_header_tar.c b/archival/libarchive/get_header_tar.c index d26868bf8..cc6f3f0ad 100644 --- a/archival/libarchive/get_header_tar.c +++ b/archival/libarchive/get_header_tar.c @@ -147,11 +147,13 @@ static void process_pax_hdr(archive_handle_t *archive_handle, unsigned sz, int g #endif } +#if ENABLE_FEATURE_TAR_GNU_EXTENSIONS static void die_if_bad_fnamesize(off_t sz) { if ((uoff_t)sz > 0xfff) /* more than 4k?! no funny business please */ bb_simple_error_msg_and_die("bad archive"); } +#endif char FAST_FUNC get_header_tar(archive_handle_t *archive_handle) { -- cgit v1.2.3