created (e.g., xattrs not available), and a positive number if FILE_NAME was
created. */
static int
-set_xattr (char const *file_name, struct tar_stat_info const *st,
- mode_t mode, char typeflag)
+set_xattr (MAYBE_UNUSED char const *file_name,
+ MAYBE_UNUSED struct tar_stat_info const *st,
+ MAYBE_UNUSED mode_t mode, MAYBE_UNUSED char typeflag)
{
#ifdef HAVE_XATTRS
if (xattrs_option && st->xattr_map.xm_size)
map->xm_size++;
}
-static void
+MAYBE_UNUSED static void
xheader_xattr_add (struct tar_stat_info *st,
const char *key, const char *val, idx_t len)
{
if no mask is given this includes all the user.*, security.*, system.*,
etc. available domains */
void
-xattrs_xattrs_get (int parentfd, char const *file_name,
- struct tar_stat_info *st, int fd)
+xattrs_xattrs_get (MAYBE_UNUSED int parentfd,
+ MAYBE_UNUSED char const *file_name,
+ MAYBE_UNUSED struct tar_stat_info *st, MAYBE_UNUSED int fd)
{
if (xattrs_option)
{
}
void
-xattrs_xattrs_set (struct tar_stat_info const *st,
- char const *file_name, char typeflag, bool later_run)
+xattrs_xattrs_set (MAYBE_UNUSED struct tar_stat_info const *st,
+ MAYBE_UNUSED char const *file_name,
+ MAYBE_UNUSED char typeflag, MAYBE_UNUSED bool later_run)
{
if (xattrs_option)
{