Skip to content

Commit

Permalink
Use (void) to mark unused arguments in gettext.h
Browse files Browse the repository at this point in the history
Some compilers don't consider (const char*) enough of a marker and will
complain.
  • Loading branch information
CendioOssman committed Nov 18, 2024
1 parent aac8c7a commit 3870536
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vncviewer/gettext.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3870536

Please sign in to comment.