mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 00:24:19 +01:00
Mark unused parameters as such (using "UNUSED")
This commit is contained in:
committed by
Rusty Russell
parent
20ae038080
commit
03e2e404f2
@@ -240,7 +240,7 @@ static void onchain_add_utxo(struct channel *channel, const u8 *msg)
|
||||
wallet_add_utxo(channel->peer->ld->wallet, u, p2wpkh);
|
||||
}
|
||||
|
||||
static unsigned int onchain_msg(struct subd *sd, const u8 *msg, const int *fds)
|
||||
static unsigned int onchain_msg(struct subd *sd, const u8 *msg, const int *fds UNUSED)
|
||||
{
|
||||
enum onchain_wire_type t = fromwire_peektype(msg);
|
||||
|
||||
@@ -324,12 +324,12 @@ static bool tell_if_missing(const struct channel *channel,
|
||||
|
||||
/* Only error onchaind can get is if it dies. */
|
||||
static void onchain_error(struct channel *channel,
|
||||
int peer_fd, int gossip_fd,
|
||||
const struct crypto_state *cs,
|
||||
u64 gossip_index,
|
||||
const struct channel_id *channel_id,
|
||||
int peer_fd UNUSED, int gossip_fd UNUSED,
|
||||
const struct crypto_state *cs UNUSED,
|
||||
u64 gossip_index UNUSED,
|
||||
const struct channel_id *channel_id UNUSED,
|
||||
const char *desc,
|
||||
const u8 *err_for_them)
|
||||
const u8 *err_for_them UNUSED)
|
||||
{
|
||||
/* FIXME: re-launch? */
|
||||
log_broken(channel->log, "%s", desc);
|
||||
@@ -341,7 +341,7 @@ static void onchain_error(struct channel *channel,
|
||||
* onchaind (like any other owner), and restart */
|
||||
enum watch_result funding_spent(struct channel *channel,
|
||||
const struct bitcoin_tx *tx,
|
||||
size_t input_num,
|
||||
size_t input_num UNUSED,
|
||||
const struct block *block)
|
||||
{
|
||||
u8 *msg;
|
||||
|
||||
Reference in New Issue
Block a user