Skip to content

Commit

Permalink
disable unused param warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Manoj Patra committed Nov 14, 2023
1 parent 51b5ce5 commit 6b89159
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/handle_provide_parameter.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ static void handle_amount_received(const ethPluginProvideParameter_t *msg, conte
copy_parameter(context->amount_received, msg->parameter, sizeof(context->amount_received));
}

static void handle_unsupported_param(ethPluginProvideParameter_t *msg, const context_t *context) {
static void handle_unsupported_param(ethPluginProvideParameter_t *msg) {
#ifdef DEBUG
context_t *context = (context_t *) msg->pluginContext;
PRINTF("Param not supported: %d\n", context->next_param);
#endif

msg->result = ETH_PLUGIN_RESULT_ERROR;
}

Expand All @@ -19,7 +23,7 @@ static void handle_stake(ethPluginProvideParameter_t *msg, context_t *context) {
break;
// Keep this
default:
handle_unsupported_param(msg, context);
handle_unsupported_param(msg);
break;
}
}
Expand All @@ -37,7 +41,7 @@ static void handle_unstake(ethPluginProvideParameter_t *msg, context_t *context)
break;
// Keep this
default:
handle_unsupported_param(msg, context);
handle_unsupported_param(msg);
break;
}
}
Expand All @@ -51,7 +55,7 @@ static void handle_ethx_deposit(ethPluginProvideParameter_t *msg, context_t *con

// Keep this
default:
handle_unsupported_param(msg, context);
handle_unsupported_param(msg);
break;
}
}
Expand All @@ -70,7 +74,7 @@ static void handle_ethx_request_withdraw(ethPluginProvideParameter_t *msg, conte

// Keep this
default:
handle_unsupported_param(msg, context);
handle_unsupported_param(msg);
break;
}
}
Expand Down

0 comments on commit 6b89159

Please sign in to comment.