1f3433
From a3c9d87924455448cf3bcb20d34f1bd4e6b915d8 Mon Sep 17 00:00:00 2001
1f3433
From: Robbie Harwood <rharwood@redhat.com>
1f3433
Date: Wed, 15 Mar 2017 13:52:36 -0400
1f3433
Subject: [PATCH] Fix unused variables
1f3433
1f3433
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
1f3433
Reviewed-by: Simo Sorce <simo@redhat.com>
1f3433
Merges: #173
1f3433
(cherry picked from commit e72d1fa53df8af55b47639ed01f9f0bafa7a2ca8)
1f3433
---
1f3433
 proxy/src/client/gpm_common.c            |  1 +
1f3433
 proxy/src/client/gpm_display_status.c    |  2 +-
1f3433
 proxy/src/client/gpm_release_handle.c    |  2 +-
1f3433
 proxy/src/gp_common.h                    |  1 +
1f3433
 proxy/src/gp_config.c                    |  8 ++------
1f3433
 proxy/src/gp_conv.c                      |  4 ++--
1f3433
 proxy/src/gp_conv.h                      |  3 +--
1f3433
 proxy/src/gp_creds.c                     |  7 +++----
1f3433
 proxy/src/gp_init.c                      |  2 +-
1f3433
 proxy/src/gp_rpc_accept_sec_context.c    |  3 +--
1f3433
 proxy/src/gp_rpc_acquire_cred.c          |  3 +--
1f3433
 proxy/src/gp_rpc_get_mic.c               |  4 ++--
1f3433
 proxy/src/gp_rpc_import_and_canon_name.c |  5 ++---
1f3433
 proxy/src/gp_rpc_indicate_mechs.c        |  5 ++---
1f3433
 proxy/src/gp_rpc_init_sec_context.c      |  3 +--
1f3433
 proxy/src/gp_rpc_process.c               | 21 ++++-----------------
1f3433
 proxy/src/gp_rpc_process.h               |  6 ++++++
1f3433
 proxy/src/gp_rpc_release_handle.c        |  5 ++---
1f3433
 proxy/src/gp_rpc_unwrap.c                |  5 ++---
1f3433
 proxy/src/gp_rpc_verify_mic.c            |  5 ++---
1f3433
 proxy/src/gp_rpc_wrap.c                  |  4 ++--
1f3433
 proxy/src/gp_rpc_wrap_size_limit.c       |  5 ++---
1f3433
 proxy/src/gp_socket.c                    |  2 +-
1f3433
 proxy/src/gssproxy.c                     |  2 +-
1f3433
 24 files changed, 44 insertions(+), 64 deletions(-)
1f3433
1f3433
diff --git a/proxy/src/client/gpm_common.c b/proxy/src/client/gpm_common.c
1f3433
index 0a54dbc..030765a 100644
1f3433
--- a/proxy/src/client/gpm_common.c
1f3433
+++ b/proxy/src/client/gpm_common.c
1f3433
@@ -320,6 +320,7 @@ static void gpm_release_ctx(struct gpm_ctx *gpmctx)
1f3433
 OM_uint32 gpm_release_buffer(OM_uint32 *minor_status,
1f3433
                              gss_buffer_t buffer)
1f3433
 {
1f3433
+    *minor_status = 0;
1f3433
     if (buffer != GSS_C_NO_BUFFER) {
1f3433
         if (buffer->value) {
1f3433
             free(buffer->value);
1f3433
diff --git a/proxy/src/client/gpm_display_status.c b/proxy/src/client/gpm_display_status.c
1f3433
index 1f8d755..bbb546f 100644
1f3433
--- a/proxy/src/client/gpm_display_status.c
1f3433
+++ b/proxy/src/client/gpm_display_status.c
1f3433
@@ -43,7 +43,7 @@ void gpm_save_internal_status(uint32_t err, char *err_str)
1f3433
 OM_uint32 gpm_display_status(OM_uint32 *minor_status,
1f3433
                              OM_uint32 status_value,
1f3433
                              int status_type,
1f3433
-                             const gss_OID mech_type,
1f3433
+                             const gss_OID mech_type UNUSED,
1f3433
                              OM_uint32 *message_context,
1f3433
                              gss_buffer_t status_string)
1f3433
 {
1f3433
diff --git a/proxy/src/client/gpm_release_handle.c b/proxy/src/client/gpm_release_handle.c
1f3433
index 7a6aaed..8f49ee9 100644
1f3433
--- a/proxy/src/client/gpm_release_handle.c
1f3433
+++ b/proxy/src/client/gpm_release_handle.c
1f3433
@@ -58,7 +58,7 @@ done:
1f3433
 
1f3433
 OM_uint32 gpm_delete_sec_context(OM_uint32 *minor_status,
1f3433
                                  gssx_ctx **context_handle,
1f3433
-                                 gss_buffer_t output_token)
1f3433
+                                 gss_buffer_t output_token UNUSED)
1f3433
 {
1f3433
     union gp_rpc_arg uarg;
1f3433
     union gp_rpc_res ures;
1f3433
diff --git a/proxy/src/gp_common.h b/proxy/src/gp_common.h
1f3433
index 36fd843..edc23b4 100644
1f3433
--- a/proxy/src/gp_common.h
1f3433
+++ b/proxy/src/gp_common.h
1f3433
@@ -8,6 +8,7 @@
1f3433
 #include "gp_log.h"
1f3433
 
1f3433
 #define no_const(ptr) ((void *)((uintptr_t)(ptr)))
1f3433
+#define UNUSED  __attribute__((unused))
1f3433
 
1f3433
 /* add element to list head */
1f3433
 #define LIST_ADD(list, elem) do { \
1f3433
diff --git a/proxy/src/gp_config.c b/proxy/src/gp_config.c
1f3433
index 1b833fd..5c1ca02 100644
1f3433
--- a/proxy/src/gp_config.c
1f3433
+++ b/proxy/src/gp_config.c
1f3433
@@ -720,7 +720,6 @@ void free_config(struct gp_config **cfg)
1f3433
 }
1f3433
 
1f3433
 static int gp_config_from_file(const char *config_file,
1f3433
-                               struct gp_ini_context *ctx,
1f3433
                                struct ini_cfgobj *ini_config,
1f3433
                                const uint32_t collision_flags)
1f3433
 {
1f3433
@@ -764,7 +763,6 @@ static int gp_config_from_file(const char *config_file,
1f3433
 }
1f3433
 
1f3433
 static int gp_config_from_dir(const char *config_dir,
1f3433
-                              struct gp_ini_context *ctx,
1f3433
                               struct ini_cfgobj **ini_config,
1f3433
                               const uint32_t collision_flags)
1f3433
 {
1f3433
@@ -847,8 +845,7 @@ int gp_config_init(const char *config_file, const char *config_dir,
1f3433
     }
1f3433
 
1f3433
     if (config_file) {
1f3433
-        ret = gp_config_from_file(config_file, ctx, ini_config,
1f3433
-                                  collision_flags);
1f3433
+        ret = gp_config_from_file(config_file, ini_config, collision_flags);
1f3433
         if (ret == ENOENT) {
1f3433
             GPDEBUG("Expected config file %s but did not find it.\n",
1f3433
                     config_file);
1f3433
@@ -857,8 +854,7 @@ int gp_config_init(const char *config_file, const char *config_dir,
1f3433
         }
1f3433
     }
1f3433
     if (config_dir) {
1f3433
-        ret = gp_config_from_dir(config_dir, ctx, &ini_config,
1f3433
-                                 collision_flags);
1f3433
+        ret = gp_config_from_dir(config_dir, &ini_config, collision_flags);
1f3433
         if (ret) {
1f3433
             return ret;
1f3433
         }
1f3433
diff --git a/proxy/src/gp_conv.c b/proxy/src/gp_conv.c
1f3433
index 6aa66a8..71d6d9d 100644
1f3433
--- a/proxy/src/gp_conv.c
1f3433
+++ b/proxy/src/gp_conv.c
1f3433
@@ -6,6 +6,7 @@
1f3433
 #include <stdbool.h>
1f3433
 #include <errno.h>
1f3433
 #include "gp_conv.h"
1f3433
+#include "src/gp_common.h"
1f3433
 
1f3433
 void *gp_memdup(void *in, size_t len)
1f3433
 {
1f3433
@@ -488,8 +489,7 @@ done:
1f3433
     return ret_maj;
1f3433
 }
1f3433
 
1f3433
-int gp_conv_status_to_gssx(struct gssx_call_ctx *call_ctx,
1f3433
-                           uint32_t ret_maj, uint32_t ret_min,
1f3433
+int gp_conv_status_to_gssx(uint32_t ret_maj, uint32_t ret_min,
1f3433
                            gss_OID mech, struct gssx_status *status)
1f3433
 {
1f3433
     int ret;
1f3433
diff --git a/proxy/src/gp_conv.h b/proxy/src/gp_conv.h
1f3433
index e247dbd..699b301 100644
1f3433
--- a/proxy/src/gp_conv.h
1f3433
+++ b/proxy/src/gp_conv.h
1f3433
@@ -39,8 +39,7 @@ uint32_t gp_conv_name_to_gssx_alloc(uint32_t *min,
1f3433
                                     gss_name_t in, gssx_name **out);
1f3433
 uint32_t gp_conv_gssx_to_name(uint32_t *min, gssx_name *in, gss_name_t *out);
1f3433
 
1f3433
-int gp_conv_status_to_gssx(struct gssx_call_ctx *call_ctx,
1f3433
-                           uint32_t ret_maj, uint32_t ret_min,
1f3433
+int gp_conv_status_to_gssx(uint32_t ret_maj, uint32_t ret_min,
1f3433
                            gss_OID mech, struct gssx_status *status);
1f3433
 
1f3433
 int gp_copy_utf8string(utf8string *in, utf8string *out);
1f3433
diff --git a/proxy/src/gp_creds.c b/proxy/src/gp_creds.c
1f3433
index 7d89b06..6570b06 100644
1f3433
--- a/proxy/src/gp_creds.c
1f3433
+++ b/proxy/src/gp_creds.c
1f3433
@@ -252,7 +252,6 @@ done:
1f3433
 
1f3433
 static int ensure_segregated_ccache(struct gp_call_ctx *gpcall,
1f3433
                                     int cc_num,
1f3433
-                                    struct gp_service *svc,
1f3433
                                     gss_key_value_set_desc *cs)
1f3433
 {
1f3433
     int ret;
1f3433
@@ -482,7 +481,7 @@ static int gp_get_cred_environment(struct gp_call_ctx *gpcall,
1f3433
         }
1f3433
     }
1f3433
 
1f3433
-    ret = ensure_segregated_ccache(gpcall, cc_num, svc, cs);
1f3433
+    ret = ensure_segregated_ccache(gpcall, cc_num, cs);
1f3433
     if (ret != 0) {
1f3433
         goto done;
1f3433
     }
1f3433
@@ -587,8 +586,8 @@ uint32_t gp_add_krb5_creds(uint32_t *min,
1f3433
                            gss_cred_id_t in_cred,
1f3433
                            gssx_name *desired_name,
1f3433
                            gss_cred_usage_t cred_usage,
1f3433
-                           uint32_t initiator_time_req,
1f3433
-                           uint32_t acceptor_time_req,
1f3433
+                           uint32_t initiator_time_req UNUSED,
1f3433
+                           uint32_t acceptor_time_req UNUSED,
1f3433
                            gss_cred_id_t *output_cred_handle,
1f3433
                            gss_OID_set *actual_mechs,
1f3433
                            uint32_t *initiator_time_rec,
1f3433
diff --git a/proxy/src/gp_init.c b/proxy/src/gp_init.c
1f3433
index d367f92..e69934d 100644
1f3433
--- a/proxy/src/gp_init.c
1f3433
+++ b/proxy/src/gp_init.c
1f3433
@@ -96,7 +96,7 @@ void fini_server(void)
1f3433
     closelog();
1f3433
 }
1f3433
 
1f3433
-static void break_loop(verto_ctx *vctx, verto_ev *ev)
1f3433
+static void break_loop(verto_ctx *vctx, verto_ev *ev UNUSED)
1f3433
 {
1f3433
     GPDEBUG("Exiting after receiving a signal\n");
1f3433
     verto_break(vctx);
1f3433
diff --git a/proxy/src/gp_rpc_accept_sec_context.c b/proxy/src/gp_rpc_accept_sec_context.c
1f3433
index 22a4cf7..ae4de55 100644
1f3433
--- a/proxy/src/gp_rpc_accept_sec_context.c
1f3433
+++ b/proxy/src/gp_rpc_accept_sec_context.c
1f3433
@@ -152,8 +152,7 @@ done:
1f3433
         ret_maj = acpt_maj;
1f3433
         ret_min = acpt_min;
1f3433
     }
1f3433
-    ret = gp_conv_status_to_gssx(&asca->call_ctx,
1f3433
-                                 ret_maj, ret_min, oid,
1f3433
+    ret = gp_conv_status_to_gssx(ret_maj, ret_min, oid,
1f3433
                                  &ascr->status);
1f3433
     GPRPCDEBUG(gssx_res_accept_sec_context, ascr);
1f3433
 
1f3433
diff --git a/proxy/src/gp_rpc_acquire_cred.c b/proxy/src/gp_rpc_acquire_cred.c
1f3433
index 9a55937..e9c7d56 100644
1f3433
--- a/proxy/src/gp_rpc_acquire_cred.c
1f3433
+++ b/proxy/src/gp_rpc_acquire_cred.c
1f3433
@@ -150,8 +150,7 @@ int gp_acquire_cred(struct gp_call_ctx *gpcall,
1f3433
     }
1f3433
 
1f3433
 done:
1f3433
-    ret = gp_conv_status_to_gssx(&aca->call_ctx,
1f3433
-                                 ret_maj, ret_min, desired_mech,
1f3433
+    ret = gp_conv_status_to_gssx(ret_maj, ret_min, desired_mech,
1f3433
                                  &acr->status);
1f3433
 
1f3433
     GPRPCDEBUG(gssx_res_acquire_cred, acr);
1f3433
diff --git a/proxy/src/gp_rpc_get_mic.c b/proxy/src/gp_rpc_get_mic.c
1f3433
index 1d9a1fe..dfba77e 100644
1f3433
--- a/proxy/src/gp_rpc_get_mic.c
1f3433
+++ b/proxy/src/gp_rpc_get_mic.c
1f3433
@@ -3,7 +3,7 @@
1f3433
 #include "gp_rpc_process.h"
1f3433
 #include <gssapi/gssapi.h>
1f3433
 
1f3433
-int gp_get_mic(struct gp_call_ctx *gpcall,
1f3433
+int gp_get_mic(struct gp_call_ctx *gpcall UNUSED,
1f3433
                union gp_rpc_arg *arg,
1f3433
                union gp_rpc_res *res)
1f3433
 {
1f3433
@@ -79,7 +79,7 @@ int gp_get_mic(struct gp_call_ctx *gpcall,
1f3433
     ret_min = 0;
1f3433
 
1f3433
 done:
1f3433
-    ret = gp_conv_status_to_gssx(&gma->call_ctx, ret_maj, ret_min,
1f3433
+    ret = gp_conv_status_to_gssx(ret_maj, ret_min,
1f3433
                                  GSS_C_NO_OID, &gmr->status);
1f3433
     GPRPCDEBUG(gssx_res_get_mic, gmr);
1f3433
     gss_release_buffer(&ret_min, &message_token);
1f3433
diff --git a/proxy/src/gp_rpc_import_and_canon_name.c b/proxy/src/gp_rpc_import_and_canon_name.c
1f3433
index 3d67f40..e7b8e63 100644
1f3433
--- a/proxy/src/gp_rpc_import_and_canon_name.c
1f3433
+++ b/proxy/src/gp_rpc_import_and_canon_name.c
1f3433
@@ -8,7 +8,7 @@
1f3433
  * I am not kidding, if you hav not read it, go back and do it now, or do not
1f3433
  * touch this function */
1f3433
 
1f3433
-int gp_import_and_canon_name(struct gp_call_ctx *gpcall,
1f3433
+int gp_import_and_canon_name(struct gp_call_ctx *gpcall UNUSED,
1f3433
                              union gp_rpc_arg *arg,
1f3433
                              union gp_rpc_res *res)
1f3433
 {
1f3433
@@ -64,8 +64,7 @@ int gp_import_and_canon_name(struct gp_call_ctx *gpcall,
1f3433
     /* TODO: icna->name_attributes */
1f3433
 
1f3433
 done:
1f3433
-    ret = gp_conv_status_to_gssx(&icna->call_ctx,
1f3433
-                                 ret_maj, ret_min, mech,
1f3433
+    ret = gp_conv_status_to_gssx(ret_maj, ret_min, mech,
1f3433
                                  &icnr->status);
1f3433
     GPRPCDEBUG(gssx_res_import_and_canon_name, icnr);
1f3433
 
1f3433
diff --git a/proxy/src/gp_rpc_indicate_mechs.c b/proxy/src/gp_rpc_indicate_mechs.c
1f3433
index c24b926..8abbc7f 100644
1f3433
--- a/proxy/src/gp_rpc_indicate_mechs.c
1f3433
+++ b/proxy/src/gp_rpc_indicate_mechs.c
1f3433
@@ -3,7 +3,7 @@
1f3433
 #include "gp_rpc_process.h"
1f3433
 #include "gp_debug.h"
1f3433
 
1f3433
-int gp_indicate_mechs(struct gp_call_ctx *gpcall,
1f3433
+int gp_indicate_mechs(struct gp_call_ctx *gpcall UNUSED,
1f3433
                       union gp_rpc_arg *arg,
1f3433
                       union gp_rpc_res *res)
1f3433
 {
1f3433
@@ -251,8 +251,7 @@ int gp_indicate_mechs(struct gp_call_ctx *gpcall,
1f3433
     }
1f3433
 
1f3433
 done:
1f3433
-    ret = gp_conv_status_to_gssx(&ima->call_ctx,
1f3433
-                                 ret_maj, ret_min, GSS_C_NO_OID,
1f3433
+    ret = gp_conv_status_to_gssx(ret_maj, ret_min, GSS_C_NO_OID,
1f3433
                                  &imr->status);
1f3433
     GPRPCDEBUG(gssx_res_indicate_mechs, imr);
1f3433
 
1f3433
diff --git a/proxy/src/gp_rpc_init_sec_context.c b/proxy/src/gp_rpc_init_sec_context.c
1f3433
index 413e2ec..e4af495 100644
1f3433
--- a/proxy/src/gp_rpc_init_sec_context.c
1f3433
+++ b/proxy/src/gp_rpc_init_sec_context.c
1f3433
@@ -187,8 +187,7 @@ done:
1f3433
         ret_maj = init_maj;
1f3433
         ret_min = init_min;
1f3433
     }
1f3433
-    ret = gp_conv_status_to_gssx(&isca->call_ctx,
1f3433
-                                 ret_maj, ret_min, mech_type,
1f3433
+    ret = gp_conv_status_to_gssx(ret_maj, ret_min, mech_type,
1f3433
                                  &iscr->status);
1f3433
 
1f3433
     GPRPCDEBUG(gssx_res_init_sec_context, iscr);
1f3433
diff --git a/proxy/src/gp_rpc_process.c b/proxy/src/gp_rpc_process.c
1f3433
index d1a0232..0ea17f0 100644
1f3433
--- a/proxy/src/gp_rpc_process.c
1f3433
+++ b/proxy/src/gp_rpc_process.c
1f3433
@@ -396,20 +396,7 @@ int gp_rpc_process_call(struct gp_call_ctx *gpcall,
1f3433
     return ret;
1f3433
 }
1f3433
 
1f3433
-int gp_get_call_context(gp_exec_std_args)
1f3433
-{
1f3433
-    return 0;
1f3433
-}
1f3433
-int gp_export_cred(gp_exec_std_args)
1f3433
-{
1f3433
-    return 0;
1f3433
-}
1f3433
-int gp_import_cred(gp_exec_std_args)
1f3433
-{
1f3433
-    return 0;
1f3433
-}
1f3433
-
1f3433
-int gp_store_cred(gp_exec_std_args)
1f3433
-{
1f3433
-    return 0;
1f3433
-}
1f3433
+GP_EXEC_UNUSED_FUNC(gp_get_call_context);
1f3433
+GP_EXEC_UNUSED_FUNC(gp_export_cred);
1f3433
+GP_EXEC_UNUSED_FUNC(gp_import_cred);
1f3433
+GP_EXEC_UNUSED_FUNC(gp_store_cred);
1f3433
diff --git a/proxy/src/gp_rpc_process.h b/proxy/src/gp_rpc_process.h
1f3433
index eb02c95..da27795 100644
1f3433
--- a/proxy/src/gp_rpc_process.h
1f3433
+++ b/proxy/src/gp_rpc_process.h
1f3433
@@ -24,6 +24,12 @@ struct gp_service;
1f3433
                          union gp_rpc_arg *arg, \
1f3433
                          union gp_rpc_res *res
1f3433
 
1f3433
+#define GP_EXEC_UNUSED_FUNC(name)               \
1f3433
+    int name(struct gp_call_ctx *gpcall UNUSED, \
1f3433
+             union gp_rpc_arg *arg UNUSED,      \
1f3433
+             union gp_rpc_res *res UNUSED)      \
1f3433
+    { return 0; }
1f3433
+
1f3433
 int gp_indicate_mechs(gp_exec_std_args);
1f3433
 int gp_get_call_context(gp_exec_std_args);
1f3433
 int gp_import_and_canon_name(gp_exec_std_args);
1f3433
diff --git a/proxy/src/gp_rpc_release_handle.c b/proxy/src/gp_rpc_release_handle.c
1f3433
index 4ffdfb9..c8ba8f2 100644
1f3433
--- a/proxy/src/gp_rpc_release_handle.c
1f3433
+++ b/proxy/src/gp_rpc_release_handle.c
1f3433
@@ -2,7 +2,7 @@
1f3433
 
1f3433
 #include "gp_rpc_process.h"
1f3433
 
1f3433
-int gp_release_handle(struct gp_call_ctx *gpcall,
1f3433
+int gp_release_handle(struct gp_call_ctx *gpcall UNUSED,
1f3433
                       union gp_rpc_arg *arg,
1f3433
                       union gp_rpc_res *res)
1f3433
 {
1f3433
@@ -35,8 +35,7 @@ int gp_release_handle(struct gp_call_ctx *gpcall,
1f3433
         break;
1f3433
     }
1f3433
 
1f3433
-    ret = gp_conv_status_to_gssx(&rha->call_ctx,
1f3433
-                                 ret_maj, ret_min, GSS_C_NO_OID,
1f3433
+    ret = gp_conv_status_to_gssx(ret_maj, ret_min, GSS_C_NO_OID,
1f3433
                                  &rhr->status);
1f3433
     GPRPCDEBUG(gssx_res_release_handle, rhr);
1f3433
 
1f3433
diff --git a/proxy/src/gp_rpc_unwrap.c b/proxy/src/gp_rpc_unwrap.c
1f3433
index bc052cb..fad8cfe 100644
1f3433
--- a/proxy/src/gp_rpc_unwrap.c
1f3433
+++ b/proxy/src/gp_rpc_unwrap.c
1f3433
@@ -3,7 +3,7 @@
1f3433
 #include "gp_rpc_process.h"
1f3433
 #include <gssapi/gssapi.h>
1f3433
 
1f3433
-int gp_unwrap(struct gp_call_ctx *gpcall,
1f3433
+int gp_unwrap(struct gp_call_ctx *gpcall UNUSED,
1f3433
               union gp_rpc_arg *arg,
1f3433
               union gp_rpc_res *res)
1f3433
 {
1f3433
@@ -106,8 +106,7 @@ int gp_unwrap(struct gp_call_ctx *gpcall,
1f3433
     ret_min = 0;
1f3433
 
1f3433
 done:
1f3433
-    ret = gp_conv_status_to_gssx(&uwa->call_ctx,
1f3433
-                                 ret_maj, ret_min,
1f3433
+    ret = gp_conv_status_to_gssx(ret_maj, ret_min,
1f3433
                                  GSS_C_NO_OID,
1f3433
                                  &uwr->status);
1f3433
     GPRPCDEBUG(gssx_res_unwrap, uwr);
1f3433
diff --git a/proxy/src/gp_rpc_verify_mic.c b/proxy/src/gp_rpc_verify_mic.c
1f3433
index d2920d2..6da6dac 100644
1f3433
--- a/proxy/src/gp_rpc_verify_mic.c
1f3433
+++ b/proxy/src/gp_rpc_verify_mic.c
1f3433
@@ -3,7 +3,7 @@
1f3433
 #include "gp_rpc_process.h"
1f3433
 #include <gssapi/gssapi.h>
1f3433
 
1f3433
-int gp_verify_mic(struct gp_call_ctx *gpcall,
1f3433
+int gp_verify_mic(struct gp_call_ctx *gpcall UNUSED,
1f3433
                   union gp_rpc_arg *arg,
1f3433
                   union gp_rpc_res *res)
1f3433
 {
1f3433
@@ -74,8 +74,7 @@ int gp_verify_mic(struct gp_call_ctx *gpcall,
1f3433
     ret_min = 0;
1f3433
 
1f3433
 done:
1f3433
-    ret = gp_conv_status_to_gssx(&vma->call_ctx,
1f3433
-                                 ret_maj, ret_min,
1f3433
+    ret = gp_conv_status_to_gssx(ret_maj, ret_min,
1f3433
                                  GSS_C_NO_OID,
1f3433
                                  &vmr->status);
1f3433
     GPRPCDEBUG(gssx_res_verify_mic, vmr);
1f3433
diff --git a/proxy/src/gp_rpc_wrap.c b/proxy/src/gp_rpc_wrap.c
1f3433
index d5c950e..ae20bdb 100644
1f3433
--- a/proxy/src/gp_rpc_wrap.c
1f3433
+++ b/proxy/src/gp_rpc_wrap.c
1f3433
@@ -3,7 +3,7 @@
1f3433
 #include "gp_rpc_process.h"
1f3433
 #include <gssapi/gssapi.h>
1f3433
 
1f3433
-int gp_wrap(struct gp_call_ctx *gpcall,
1f3433
+int gp_wrap(struct gp_call_ctx *gpcall UNUSED,
1f3433
             union gp_rpc_arg *arg,
1f3433
             union gp_rpc_res *res)
1f3433
 {
1f3433
@@ -105,7 +105,7 @@ int gp_wrap(struct gp_call_ctx *gpcall,
1f3433
     ret_min = 0;
1f3433
 
1f3433
 done:
1f3433
-    ret = gp_conv_status_to_gssx(&wa->call_ctx, ret_maj, ret_min,
1f3433
+    ret = gp_conv_status_to_gssx(ret_maj, ret_min,
1f3433
                                  GSS_C_NO_OID, &wr->status);
1f3433
     GPRPCDEBUG(gssx_res_wrap, wr);
1f3433
     gss_release_buffer(&ret_min, &output_message_buffer);
1f3433
diff --git a/proxy/src/gp_rpc_wrap_size_limit.c b/proxy/src/gp_rpc_wrap_size_limit.c
1f3433
index 355113c..cab6826 100644
1f3433
--- a/proxy/src/gp_rpc_wrap_size_limit.c
1f3433
+++ b/proxy/src/gp_rpc_wrap_size_limit.c
1f3433
@@ -3,7 +3,7 @@
1f3433
 #include "gp_rpc_process.h"
1f3433
 #include <gssapi/gssapi.h>
1f3433
 
1f3433
-int gp_wrap_size_limit(struct gp_call_ctx *gpcall,
1f3433
+int gp_wrap_size_limit(struct gp_call_ctx *gpcall UNUSED,
1f3433
                        union gp_rpc_arg *arg,
1f3433
                        union gp_rpc_res *res)
1f3433
 {
1f3433
@@ -51,8 +51,7 @@ int gp_wrap_size_limit(struct gp_call_ctx *gpcall,
1f3433
     ret_min = 0;
1f3433
 
1f3433
 done:
1f3433
-    ret = gp_conv_status_to_gssx(&wsla->call_ctx,
1f3433
-                                 ret_maj, ret_min,
1f3433
+    ret = gp_conv_status_to_gssx(ret_maj, ret_min,
1f3433
                                  GSS_C_NO_OID,
1f3433
                                  &wslr->status);
1f3433
     GPRPCDEBUG(gssx_res_wrap_size_limit, wslr);
1f3433
diff --git a/proxy/src/gp_socket.c b/proxy/src/gp_socket.c
1f3433
index 62d7dbc..829ff21 100644
1f3433
--- a/proxy/src/gp_socket.c
1f3433
+++ b/proxy/src/gp_socket.c
1f3433
@@ -146,7 +146,7 @@ static int set_fd_flags(int fd, int flags)
1f3433
     return 0;
1f3433
 }
1f3433
 
1f3433
-void free_unix_socket(verto_ctx *ctx, verto_ev *ev)
1f3433
+void free_unix_socket(verto_ctx *ctx UNUSED, verto_ev *ev)
1f3433
 {
1f3433
     struct gp_sock_ctx *sock_ctx = NULL;
1f3433
     sock_ctx = verto_get_private(ev);
1f3433
diff --git a/proxy/src/gssproxy.c b/proxy/src/gssproxy.c
1f3433
index 561188e..a020218 100644
1f3433
--- a/proxy/src/gssproxy.c
1f3433
+++ b/proxy/src/gssproxy.c
1f3433
@@ -119,7 +119,7 @@ static int init_sockets(verto_ctx *vctx, struct gp_config *old_config)
1f3433
     return 0;
1f3433
 }
1f3433
 
1f3433
-static void hup_handler(verto_ctx *vctx, verto_ev *ev)
1f3433
+static void hup_handler(verto_ctx *vctx, verto_ev *ev UNUSED)
1f3433
 {
1f3433
     int ret;
1f3433
     struct gp_config *new_config, *old_config;