1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-10-31 20:08:43 +01:00

gpg: Cleanup compiler warnings due to some configure options.

* g10/photoid.c (show_photos) [DISABLE_PHOTO_VIEWER]: Mark args as
unused.
* tools/gpgconf-comp.c (my_dgettext): Mark DOMAIN as unused if NLS is
not configured.
This commit is contained in:
Werner Koch 2014-02-10 19:48:42 +01:00
parent 62fb86c658
commit 7901c5c2a3
2 changed files with 11 additions and 3 deletions

View File

@ -287,7 +287,12 @@ void
show_photos(const struct user_attribute *attrs, int count, show_photos(const struct user_attribute *attrs, int count,
PKT_public_key *pk, PKT_user_id *uid) PKT_public_key *pk, PKT_user_id *uid)
{ {
#ifndef DISABLE_PHOTO_VIEWER #ifdef DISABLE_PHOTO_VIEWER
(void)attrs;
(void)count;
(void)pk;
(void)uid;
#else /*!DISABLE_PHOTO_VIEWER*/
int i; int i;
struct expando_args args; struct expando_args args;
u32 len; u32 len;
@ -367,5 +372,5 @@ show_photos(const struct user_attribute *attrs, int count,
fail: fail:
log_error(_("unable to display photo ID!\n")); log_error(_("unable to display photo ID!\n"));
#endif #endif /*!DISABLE_PHOTO_VIEWER*/
} }

View File

@ -1230,8 +1230,11 @@ my_dgettext (const char *domain, const char *msgid)
return text ? text : msgid; return text ? text : msgid;
} }
else else
#endif
return msgid; return msgid;
#else
(void)domain;
return msgid;
#endif
} }