summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <pwithnall@gnome.org>2023-12-04 13:10:48 +0000
committerPhilip Withnall <pwithnall@gnome.org>2023-12-04 13:12:21 +0000
commita806522cabd729c45dc4e7b691e09856f77970dc (patch)
tree5fda5367e4261e557581070c6859bb25c613e4b8
parentfc109b016b761725990c80dfcc6834d48d73ae0b (diff)
src: Mark some unused parameters
This fixes some compiler warnings. Signed-off-by: Philip Withnall <pwithnall@gnome.org>
-rw-r--r--src/xdgmime.c2
-rw-r--r--src/xdgmimeint.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/xdgmime.c b/src/xdgmime.c
index 6fd0369..0909581 100644
--- a/src/xdgmime.c
+++ b/src/xdgmime.c
@@ -127,7 +127,7 @@ xdg_dir_time_list_free (XdgDirTimeList *list)
static int
xdg_mime_init_from_directory (const char *directory,
- void *user_data)
+ void *user_data __attribute__((__unused__)))
{
char *file_name;
struct stat st;
diff --git a/src/xdgmimeint.c b/src/xdgmimeint.c
index 0655fa0..f7ab067 100644
--- a/src/xdgmimeint.c
+++ b/src/xdgmimeint.c
@@ -115,7 +115,7 @@ _xdg_ucs4_to_lower (xdg_unichar_t source)
}
int
-_xdg_utf8_validate (const char *source)
+_xdg_utf8_validate (const char *source __attribute__((unused)))
{
/* FIXME: actually write */
return TRUE;