From 77166851f165b1220dcf0116bb61f81e58e4512f Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 28 May 2018 09:58:02 +0200 Subject: [PATCH] json: Fix compiler warning. * src/gpgme-json.c (op_version): Mark request as unused. Signed-off-by: Werner Koch --- src/gpgme-json.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gpgme-json.c b/src/gpgme-json.c index d206f5f9..56b4bc1e 100644 --- a/src/gpgme-json.c +++ b/src/gpgme-json.c @@ -1821,6 +1821,8 @@ op_version (cjson_t request, cjson_t result) gpgme_engine_info_t ei = NULL; cjson_t infos = xjson_CreateArray (); + (void)request; + if (!cJSON_AddStringToObject (result, "gpgme", gpgme_check_version (NULL))) { cJSON_Delete (infos); @@ -1845,6 +1847,8 @@ op_version (cjson_t request, cjson_t result) return 0; } + + static const char hlp_keylist[] = "op: \"keylist\"\n"