Skip to content

Commit daaed25

Browse files
riptlripatel-fd
authored andcommitted
Fix CodeQL lints
1 parent 2c06319 commit daaed25

File tree

9 files changed

+9
-13
lines changed

9 files changed

+9
-13
lines changed

src/app/firedancer-dev/commands/repair.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ repair_cmd_args( int * pargc,
377377
}
378378

379379
static void
380-
repair_cmd_fn( args_t * args FD_PARAM_UNUSED,
380+
repair_cmd_fn( args_t * args,
381381
config_t * config ) {
382382

383383
FD_LOG_NOTICE(( "Repair profiler topo" ));

src/discof/backtest/fd_backtest_tile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ query_mr( fd_shred_t const * shred ) {
344344
static void
345345
after_credit_rocksdb( ctx_t * ctx,
346346
fd_stem_context_t * stem,
347-
int * opt_poll_in FD_PARAM_UNUSED,
348-
int * charge_busy FD_PARAM_UNUSED ) {
347+
int * opt_poll_in FD_PARAM_UNUSED,
348+
int * charge_busy ) {
349349

350350
if( FD_UNLIKELY( !ctx->playback_started ) ) {
351351
ulong wmark = fd_fseq_query( ctx->published_wmark );

src/discof/poh/fd_poh_tile.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1796,7 +1796,6 @@ during_frag( fd_poh_ctx_t * ctx,
17961796
ulong chunk,
17971797
ulong sz,
17981798
ulong ctl FD_PARAM_UNUSED ) {
1799-
(void)sig;
18001799
ctx->skip_frag = 0;
18011800

18021801
if( FD_UNLIKELY( ctx->in_kind[ in_idx ]==IN_KIND_STAKE ) ) {

src/discof/repair/fd_repair_tile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ after_frag( fd_repair_tile_ctx_t * ctx,
642642
static inline void
643643
after_credit( fd_repair_tile_ctx_t * ctx,
644644
fd_stem_context_t * stem,
645-
int * opt_poll_in FD_PARAM_UNUSED,
645+
int * opt_poll_in,
646646
int * charge_busy ) {
647647

648648
if( FD_LIKELY( !fd_fec_out_empty( ctx->fec_chainer->out ) && ctx->store ) ) {

src/discof/restore/fd_snapdc_tile.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ returnable_frag( fd_snapdc_tile_t * ctx,
247247
fd_stem_context_t * stem ) {
248248
(void)in_idx;
249249
(void)seq;
250-
(void)sig;
251250
(void)tsorig;
252251
(void)tspub;
253252

src/discof/restore/fd_snapin_tile.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@ returnable_frag( fd_snapin_tile_t * ctx,
280280
fd_stem_context_t * stem ) {
281281
(void)in_idx;
282282
(void)seq;
283-
(void)sig;
284283
(void)tsorig;
285284
(void)tspub;
286285

src/discof/restore/fd_snaprd_tile.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ after_credit( fd_snaprd_tile_t * ctx,
338338
fd_stem_context_t * stem,
339339
int * opt_poll_in,
340340
int * charge_busy ) {
341-
(void)stem;
342341
(void)opt_poll_in;
343342
(void)charge_busy;
344343

src/discof/shredcap/fd_shredcap_tile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ during_frag( fd_capture_tile_ctx_t * ctx,
398398

399399
static void
400400
after_credit( fd_capture_tile_ctx_t * ctx,
401-
fd_stem_context_t * stem FD_PARAM_UNUSED,
401+
fd_stem_context_t * stem,
402402
int * opt_poll_in FD_PARAM_UNUSED,
403403
int * charge_busy FD_PARAM_UNUSED ) {
404404

src/waltz/ip/fd_fib4.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ fd_fib4_hmap_insert( fd_fib4_t * fib,
166166
fd_fib4_hmap_entry_t * ele = fd_fib4_hmap_query_ele( query );
167167
ele->dst_addr = ip4_dst;
168168
FD_TEST( hop );
169-
fd_memcpy( &ele->next_hop, hop, sizeof(fd_fib4_hop_t) );
170-
fib->hmap_cnt += 1;
169+
ele->next_hop = *hop;
170+
fib->hmap_cnt++;
171171

172172
fd_fib4_hmap_publish( query );
173173

@@ -214,7 +214,7 @@ fd_fib4_insert( fd_fib4_t * fib,
214214
FD_COMPILER_MFENCE();
215215

216216
FD_TEST( hop );
217-
fd_memcpy( entry, hop, sizeof(fd_fib4_hop_t) );
217+
*entry = *hop;
218218

219219
return 1;
220220
}
@@ -244,7 +244,7 @@ fd_fib4_lookup( fd_fib4_t const * fib,
244244
if( FD_UNLIKELY( find_err ) ) {
245245
return &fd_fib4_hop_blackhole;
246246
}
247-
fd_memcpy( out, &next_hop, sizeof( fd_fib4_hop_t ) );
247+
*out = next_hop;
248248
return out;
249249
} else if( FD_UNLIKELY( find_err!=FD_MAP_ERR_KEY ) ) {
250250
return &fd_fib4_hop_blackhole;

0 commit comments

Comments
 (0)