diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2022-01-17 23:59:46 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2022-01-17 23:59:46 +0100 |
commit | 8ad2acf352d790d0bdd792b8e126d58a088451f3 (patch) | |
tree | 46e69b3e9d5d0c32dde637d8db28fabff404d428 /archival/libarchive | |
parent | 12566e7f9b5e5c5d445bc4d36991d134b431dc6c (diff) | |
download | busybox-w32-8ad2acf352d790d0bdd792b8e126d58a088451f3.tar.gz busybox-w32-8ad2acf352d790d0bdd792b8e126d58a088451f3.tar.bz2 busybox-w32-8ad2acf352d790d0bdd792b8e126d58a088451f3.zip |
fix "defined but not used" warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/libarchive')
-rw-r--r-- | archival/libarchive/get_header_tar.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 | |||
147 | #endif | 147 | #endif |
148 | } | 148 | } |
149 | 149 | ||
150 | #if ENABLE_FEATURE_TAR_GNU_EXTENSIONS | ||
150 | static void die_if_bad_fnamesize(off_t sz) | 151 | static void die_if_bad_fnamesize(off_t sz) |
151 | { | 152 | { |
152 | if ((uoff_t)sz > 0xfff) /* more than 4k?! no funny business please */ | 153 | if ((uoff_t)sz > 0xfff) /* more than 4k?! no funny business please */ |
153 | bb_simple_error_msg_and_die("bad archive"); | 154 | bb_simple_error_msg_and_die("bad archive"); |
154 | } | 155 | } |
156 | #endif | ||
155 | 157 | ||
156 | char FAST_FUNC get_header_tar(archive_handle_t *archive_handle) | 158 | char FAST_FUNC get_header_tar(archive_handle_t *archive_handle) |
157 | { | 159 | { |