Avoid gcc 13 "unused parameter" warnings
This commit is contained in:
17
src/xattrs.c
17
src/xattrs.c
@@ -447,8 +447,9 @@ acls_one_line (const char *prefix, char delim,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
xattrs_acls_get (int parentfd, char const *file_name,
|
xattrs_acls_get (MAYBE_UNUSED int parentfd, MAYBE_UNUSED char const *file_name,
|
||||||
struct tar_stat_info *st, int xisfile)
|
MAYBE_UNUSED struct tar_stat_info *st,
|
||||||
|
MAYBE_UNUSED int xisfile)
|
||||||
{
|
{
|
||||||
if (acls_option > 0)
|
if (acls_option > 0)
|
||||||
{
|
{
|
||||||
@@ -477,8 +478,8 @@ xattrs_acls_get (int parentfd, char const *file_name,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
xattrs_acls_set (struct tar_stat_info const *st,
|
xattrs_acls_set (MAYBE_UNUSED struct tar_stat_info const *st,
|
||||||
char const *file_name, char typeflag)
|
MAYBE_UNUSED char const *file_name, char typeflag)
|
||||||
{
|
{
|
||||||
if (acls_option > 0 && typeflag != SYMTYPE)
|
if (acls_option > 0 && typeflag != SYMTYPE)
|
||||||
{
|
{
|
||||||
@@ -640,8 +641,8 @@ xattrs__fd_set (char const *file_name, char typeflag,
|
|||||||
/* lgetfileconat is called against FILE_NAME iff the FD parameter is set to
|
/* lgetfileconat is called against FILE_NAME iff the FD parameter is set to
|
||||||
zero, otherwise the fgetfileconat is used against correct file descriptor */
|
zero, otherwise the fgetfileconat is used against correct file descriptor */
|
||||||
void
|
void
|
||||||
xattrs_selinux_get (int parentfd, char const *file_name,
|
xattrs_selinux_get (MAYBE_UNUSED int parentfd, MAYBE_UNUSED char const *file_name,
|
||||||
struct tar_stat_info *st, int fd)
|
MAYBE_UNUSED struct tar_stat_info *st, MAYBE_UNUSED int fd)
|
||||||
{
|
{
|
||||||
if (selinux_context_option > 0)
|
if (selinux_context_option > 0)
|
||||||
{
|
{
|
||||||
@@ -662,8 +663,8 @@ xattrs_selinux_get (int parentfd, char const *file_name,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
xattrs_selinux_set (struct tar_stat_info const *st,
|
xattrs_selinux_set (MAYBE_UNUSED struct tar_stat_info const *st,
|
||||||
char const *file_name, char typeflag)
|
MAYBE_UNUSED char const *file_name, MAYBE_UNUSED char typeflag)
|
||||||
{
|
{
|
||||||
if (selinux_context_option > 0)
|
if (selinux_context_option > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user