From: Pierre Ossman Date: Mon, 18 Nov 2024 15:41:40 +0000 (+0100) Subject: Use (void) to mark unused arguments in gettext.h X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=38705369ba11c6fa29f02c912d04f79403b9591f;p=tigervnc.git Use (void) to mark unused arguments in gettext.h Some compilers don't consider (const char*) enough of a marker and will complain. --- diff --git a/vncviewer/gettext.h b/vncviewer/gettext.h index 09473d97..5d62f680 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