From 38705369ba11c6fa29f02c912d04f79403b9591f Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 18 Nov 2024 16:41:40 +0100 Subject: [PATCH] Use (void) to mark unused arguments in gettext.h Some compilers don't consider (const char*) enough of a marker and will complain. --- vncviewer/gettext.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vncviewer/gettext.h b/vncviewer/gettext.h index 09473d9762..5d62f6806e 100644 --- a/vncviewer/gettext.h +++ b/vncviewer/gettext.h @@ -83,13 +83,13 @@ # define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \ ((void) (Category), dngettext (Domainname, Msgid1, Msgid2, N)) # undef textdomain -# define textdomain(Domainname) ((const char *) (Domainname)) +# define textdomain(Domainname) ((void) (Domainname)) # undef bindtextdomain # define bindtextdomain(Domainname, Dirname) \ - ((void) (Domainname), (const char *) (Dirname)) + ((void) (Domainname), (void) (Dirname)) # undef bind_textdomain_codeset # define bind_textdomain_codeset(Domainname, Codeset) \ - ((void) (Domainname), (const char *) (Codeset)) + ((void) (Domainname), (void) (Codeset)) #endif