json: Fix compiler warning.

* src/gpgme-json.c (op_version): Mark request as unused.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2018-05-28 09:58:02 +02:00
parent 0de991fee0
commit 77166851f1
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -1821,6 +1821,8 @@ op_version (cjson_t request, cjson_t result)
gpgme_engine_info_t ei = NULL; gpgme_engine_info_t ei = NULL;
cjson_t infos = xjson_CreateArray (); cjson_t infos = xjson_CreateArray ();
(void)request;
if (!cJSON_AddStringToObject (result, "gpgme", gpgme_check_version (NULL))) if (!cJSON_AddStringToObject (result, "gpgme", gpgme_check_version (NULL)))
{ {
cJSON_Delete (infos); cJSON_Delete (infos);
@ -1845,6 +1847,8 @@ op_version (cjson_t request, cjson_t result)
return 0; return 0;
} }
static const char hlp_keylist[] = static const char hlp_keylist[] =
"op: \"keylist\"\n" "op: \"keylist\"\n"