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:
parent
0de991fee0
commit
77166851f1
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user