summaryrefslogtreecommitdiff
path: root/glnx-fdio.c
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 /glnx-fdio.c
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>
Diffstat (limited to 'glnx-fdio.c')
-rw-r--r--glnx-fdio.c4
1 files changed, 2 insertions, 2 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);