summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2022-04-24 11:02:48 +0100
committerSimon McVittie <smcv@collabora.com>2022-04-24 11:02:48 +0100
commit2d007fa1c0dcbd93206139ed10e238f3696c5206 (patch)
tree7b2dd18b5d695e38b0c0e6d31ffc7f78a8c67c8a
parentf8b7343a29ffae3906d616dc4f6fa4185341e159 (diff)
downloadlibglnx-2d007fa1c0dcbd93206139ed10e238f3696c5206.tar.gz
fdio, xattrs: Mark unused cancellables as such
These functions take a GCancellable for consistency with other file APIs, but are not actually cancellable at the moment. Signed-off-by: Simon McVittie <smcv@collabora.com>
-rw-r--r--glnx-fdio.c4
-rw-r--r--glnx-xattrs.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/glnx-fdio.c b/glnx-fdio.c
index b3a6239..c2896f3 100644
--- a/glnx-fdio.c
+++ b/glnx-fdio.c
@@ -660,7 +660,7 @@ glnx_file_get_contents_utf8_at (int dfd,
char *
glnx_readlinkat_malloc (int dfd,
const char *subpath,
- GCancellable *cancellable,
+ G_GNUC_UNUSED GCancellable *cancellable,
GError **error)
{
dfd = glnx_dirfd_canonicalize (dfd);
@@ -1106,7 +1106,7 @@ glnx_file_replace_contents_with_perms_at (int dfd,
uid_t uid,
gid_t gid,
GLnxFileReplaceFlags flags,
- GCancellable *cancellable,
+ G_GNUC_UNUSED GCancellable *cancellable,
GError **error)
{
char *dnbuf = strdupa (subpath);
diff --git a/glnx-xattrs.c b/glnx-xattrs.c
index 32479cc..d0e6ab3 100644
--- a/glnx-xattrs.c
+++ b/glnx-xattrs.c
@@ -141,7 +141,7 @@ static gboolean
get_xattrs_impl (const char *path,
int fd,
GVariant **out_xattrs,
- GCancellable *cancellable,
+ G_GNUC_UNUSED GCancellable *cancellable,
GError **error)
{
gboolean ret = FALSE;
@@ -269,7 +269,7 @@ glnx_dfd_name_get_all_xattrs (int dfd,
static gboolean
set_all_xattrs_for_path (const char *path,
GVariant *xattrs,
- GCancellable *cancellable,
+ G_GNUC_UNUSED GCancellable *cancellable,
GError **error)
{
const guint n = g_variant_n_children (xattrs);
@@ -337,7 +337,7 @@ glnx_dfd_name_set_all_xattrs (int dfd,
gboolean
glnx_fd_set_all_xattrs (int fd,
GVariant *xattrs,
- GCancellable *cancellable,
+ G_GNUC_UNUSED GCancellable *cancellable,
GError **error)
{
const guint n = g_variant_n_children (xattrs);