Change in openvpn[master]: Fix various compiler warnings for intentionally unused parameters
A message that is not in the archive (sent off-list or not yet received): gerrit.1736860439000.I1146da697adb8a200df0507dc7ec931c36738ffa@...2715...
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
---
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
src/openvpn/dco_win.h +1 -1
@@ -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); }
src/openvpn/event.h +1 -1
@@ -214,7 +214,7 @@#else /* ifdef _WIN32 */ static inline void -wait_signal (struct event_set *es,void *arg) +wait_signal (struct event_set *,void *) { }
src/openvpn/multi.c +2 -2
@@ -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; }
src/openvpn/perf.h +1 -1
@@ -75,7 +75,7 @@#else /* ifdef ENABLE_PERFORMANCE_METRICS */ static inline void -perf_push (int type) +perf_push (int ) { } static inline void
src/openvpn/route.c +1 -1
@@ -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 */ { }
src/openvpn/route.h +1 -1
@@ -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; }
src/openvpn/ssl.c +1 -1
@@ -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) {
src/openvpn/tun.h +6 -6
@@ -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; }
src/openvpn/xkey_provider.c +14 -14
@@ -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;
src/plugins/auth-pam/auth-pam.c +1 -1
@@ -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;
src/plugins/down-root/down-root.c +1 -1
@@ -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;
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/861?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1146da697adb8a200df0507dc7ec931c36738ffa
Gerrit-Change-Number: 861
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-MessageType: newchange
flichtenheld has abandoned this change. ( http://gerrit.openvpn.net/c/openvpn/+/861?usp=email )
Change subject: Fix various compiler warnings for intentionally unused parameters
......................................................................
Abandoned
Doesn't work with BSD compiler
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/861?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1146da697adb8a200df0507dc7ec931c36738ffa
Gerrit-Change-Number: 861
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: abandon