@@ -54,7 +54,7 @@
#else /* if defined(ENABLE_DCO) && defined(_WIN32) */
static inline void
-dco_start_tun(struct tuntap *tt)
+dco_start_tun(struct tuntap *)
{
ASSERT(false);
}
@@ -214,7 +214,7 @@
#else /* ifdef _WIN32 */
static inline void
-wait_signal(struct event_set *es, void *arg)
+wait_signal(struct event_set *, void *)
{
}
@@ -252,7 +252,7 @@
#ifdef ENABLE_MANAGEMENT
static uint32_t
-cid_hash_function(const void *key, uint32_t iv)
+cid_hash_function(const void *key, uint32_t /*iv*/)
{
const unsigned long *k = (const unsigned long *)key;
return (uint32_t) *k;
@@ -273,7 +273,7 @@
/*
* inotify watcher descriptors are used as hash value
*/
-int_hash_function(const void *key, uint32_t iv)
+int_hash_function(const void *key, uint32_t /*iv*/)
{
return (unsigned long)key;
}
@@ -75,7 +75,7 @@
#else /* ifdef ENABLE_PERFORMANCE_METRICS */
static inline void
-perf_push(int type)
+perf_push(int)
{
}
static inline void
@@ -4181,7 +4181,7 @@
#else /* if defined(_WIN32) */
static void
-get_bypass_addresses(struct route_bypass *rb, const unsigned int flags) /* PLATFORM-SPECIFIC */
+get_bypass_addresses(struct route_bypass *, const unsigned int) /* PLATFORM-SPECIFIC */
{
}
@@ -365,7 +365,7 @@
#else /* ifdef _WIN32 */
static inline bool
-test_routes(const struct route_list *rl, const struct tuntap *tt)
+test_routes(const struct route_list *, const struct tuntap *)
{
return true;
}
@@ -257,7 +257,7 @@
}
int
-pem_password_callback(char *buf, int size, int rwflag, void *u)
+pem_password_callback(char *buf, int size, int /*rwflag*/, void */*u*/)
{
if (buf)
{
@@ -698,37 +698,37 @@
#else /* ifdef _WIN32 */
static inline bool
-tuntap_stop(int status)
+tuntap_stop(int)
{
return false;
}
static inline bool
-tuntap_abort(int status)
+tuntap_abort(int)
{
return false;
}
static inline void
-tun_standby_init(struct tuntap *tt)
+tun_standby_init(struct tuntap *)
{
}
static inline bool
-tun_standby(struct tuntap *tt)
+tun_standby(struct tuntap *)
{
return true;
}
static inline bool
-tuntap_is_dco_win(struct tuntap *tt)
+tuntap_is_dco_win(struct tuntap *)
{
return false;
}
static inline bool
-tuntap_is_dco_win_timeout(struct tuntap *tt, int status)
+tuntap_is_dco_win_timeout(struct tuntap *, int)
{
return false;
}
@@ -204,7 +204,7 @@
}
static void *
-keymgmt_load(const void *reference, size_t reference_sz)
+keymgmt_load(const void */*reference*/, size_t /*reference_sz*/)
{
xkey_dmsg(D_XKEY, "entry");
@@ -416,7 +416,7 @@
/* A minimal set of key params that we can return */
static const OSSL_PARAM *
-keymgmt_gettable_params(void *provctx)
+keymgmt_gettable_params(void */*provctx*/)
{
xkey_dmsg(D_XKEY, "entry");
@@ -558,7 +558,7 @@
}
static const char *
-rsa_keymgmt_name(int id)
+rsa_keymgmt_name(int /*id*/)
{
xkey_dmsg(D_XKEY, "entry");
@@ -761,7 +761,7 @@
}
static const OSSL_PARAM *
-signature_settable_ctx_params(void *ctx, void *provctx)
+signature_settable_ctx_params(void */*ctx*/, void */*provctx*/)
{
xkey_dmsg(D_XKEY, "entry");
@@ -874,7 +874,7 @@
}
static const OSSL_PARAM *
-signature_gettable_ctx_params(void *ctx, void *provctx)
+signature_gettable_ctx_params(void */*ctx*/, void */*provctx*/)
{
xkey_dmsg(D_XKEY, "entry");
@@ -884,7 +884,7 @@
}
static int
-signature_get_ctx_params(void *ctx, OSSL_PARAM params[])
+signature_get_ctx_params(void */*ctx*/, OSSL_PARAM */*params[]*/)
{
xkey_dmsg(D_XKEY, "not implemented");
return 0;
@@ -936,7 +936,7 @@
}
static int
-signature_sign(void *ctx, unsigned char *sig, size_t *siglen, size_t sigsize,
+signature_sign(void *ctx, unsigned char *sig, size_t *siglen, size_t /*sigsize*/,
const unsigned char *tbs, size_t tbslen)
{
xkey_dmsg(D_XKEY, "entry with siglen = %zu\n", *siglen);
@@ -956,8 +956,8 @@
}
static int
-signature_digest_verify_init(void *ctx, const char *mdname, void *provkey,
- const OSSL_PARAM params[])
+signature_digest_verify_init(void */*ctx*/, const char *mdname, void */*provkey*/,
+ const OSSL_PARAM */*params[]*/)
{
xkey_dmsg(D_XKEY, "mdname <%s>", mdname);
@@ -970,8 +970,8 @@
* for debugging purposes.
*/
static int
-signature_digest_verify(void *ctx, const unsigned char *sig, size_t siglen,
- const unsigned char *tbs, size_t tbslen)
+signature_digest_verify(void */*ctx*/, const unsigned char */*sig*/, size_t /*siglen*/,
+ const unsigned char */*tbs*/, size_t /*tbslen*/)
{
xkey_dmsg(D_XKEY, "entry");
@@ -1166,7 +1166,7 @@
static OSSL_FUNC_provider_teardown_fn teardown;
static const OSSL_ALGORITHM *
-query_operation(void *provctx, int op, int *no_store)
+query_operation(void */*provctx*/, int op, int *no_store)
{
xkey_dmsg(D_XKEY, "op = %d", op);
@@ -1188,7 +1188,7 @@
}
static const OSSL_PARAM *
-gettable_params(void *provctx)
+gettable_params(void */*provctx*/)
{
xkey_dmsg(D_XKEY, "entry");
@@ -1200,7 +1200,7 @@
return param_types;
}
static int
-get_params(void *provctx, OSSL_PARAM params[])
+get_params(void */*provctx*/, OSSL_PARAM params[])
{
OSSL_PARAM *p;
@@ -520,7 +520,7 @@
}
OPENVPN_EXPORT int
-openvpn_plugin_func_v1(openvpn_plugin_handle_t handle, const int type, const char *argv[], const char *envp[])
+openvpn_plugin_func_v1(openvpn_plugin_handle_t handle, const int type, const char **/*argv[]*/, const char *envp[])
{
struct auth_pam_context *context = (struct auth_pam_context *) handle;
@@ -344,7 +344,7 @@
}
OPENVPN_EXPORT int
-openvpn_plugin_func_v1(openvpn_plugin_handle_t handle, const int type, const char *argv[], const char *envp[])
+openvpn_plugin_func_v1(openvpn_plugin_handle_t handle, const int type, const char **/*argv[]*/, const char *envp[])
{
struct down_root_context *context = (struct down_root_context *) handle;
Attention is currently required from: plaisthos. Hello plaisthos, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/861?usp=email to review the following change. Change subject: Fix various compiler warnings for intentionally unused parameters ...................................................................... Fix various compiler warnings for intentionally unused parameters Change-Id: I1146da697adb8a200df0507dc7ec931c36738ffa Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com> --- M src/openvpn/dco_win.h M src/openvpn/event.h M src/openvpn/multi.c M src/openvpn/perf.h M src/openvpn/route.c M src/openvpn/route.h M src/openvpn/ssl.c M src/openvpn/tun.h M src/openvpn/xkey_provider.c M src/plugins/auth-pam/auth-pam.c M src/plugins/down-root/down-root.c 11 files changed, 30 insertions(+), 30 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/61/861/1