@@ -282,7 +282,8 @@ static int refname_atom_parser_internal(struct refname_atom *atom, const char *a
282
282
return 0 ;
283
283
}
284
284
285
- static int remote_ref_atom_parser (struct ref_format * format , struct used_atom * atom ,
285
+ static int remote_ref_atom_parser (struct ref_format * format UNUSED ,
286
+ struct used_atom * atom ,
286
287
const char * arg , struct strbuf * err )
287
288
{
288
289
struct string_list params = STRING_LIST_INIT_DUP ;
@@ -329,7 +330,8 @@ static int remote_ref_atom_parser(struct ref_format *format, struct used_atom *a
329
330
return 0 ;
330
331
}
331
332
332
- static int objecttype_atom_parser (struct ref_format * format , struct used_atom * atom ,
333
+ static int objecttype_atom_parser (struct ref_format * format UNUSED ,
334
+ struct used_atom * atom ,
333
335
const char * arg , struct strbuf * err )
334
336
{
335
337
if (arg )
@@ -341,7 +343,8 @@ static int objecttype_atom_parser(struct ref_format *format, struct used_atom *a
341
343
return 0 ;
342
344
}
343
345
344
- static int objectsize_atom_parser (struct ref_format * format , struct used_atom * atom ,
346
+ static int objectsize_atom_parser (struct ref_format * format UNUSED ,
347
+ struct used_atom * atom ,
345
348
const char * arg , struct strbuf * err )
346
349
{
347
350
if (!arg ) {
@@ -361,7 +364,8 @@ static int objectsize_atom_parser(struct ref_format *format, struct used_atom *a
361
364
return 0 ;
362
365
}
363
366
364
- static int deltabase_atom_parser (struct ref_format * format , struct used_atom * atom ,
367
+ static int deltabase_atom_parser (struct ref_format * format UNUSED ,
368
+ struct used_atom * atom ,
365
369
const char * arg , struct strbuf * err )
366
370
{
367
371
if (arg )
@@ -373,7 +377,8 @@ static int deltabase_atom_parser(struct ref_format *format, struct used_atom *at
373
377
return 0 ;
374
378
}
375
379
376
- static int body_atom_parser (struct ref_format * format , struct used_atom * atom ,
380
+ static int body_atom_parser (struct ref_format * format UNUSED ,
381
+ struct used_atom * atom ,
377
382
const char * arg , struct strbuf * err )
378
383
{
379
384
if (arg )
@@ -382,7 +387,8 @@ static int body_atom_parser(struct ref_format *format, struct used_atom *atom,
382
387
return 0 ;
383
388
}
384
389
385
- static int subject_atom_parser (struct ref_format * format , struct used_atom * atom ,
390
+ static int subject_atom_parser (struct ref_format * format UNUSED ,
391
+ struct used_atom * atom ,
386
392
const char * arg , struct strbuf * err )
387
393
{
388
394
if (!arg )
@@ -394,7 +400,8 @@ static int subject_atom_parser(struct ref_format *format, struct used_atom *atom
394
400
return 0 ;
395
401
}
396
402
397
- static int trailers_atom_parser (struct ref_format * format , struct used_atom * atom ,
403
+ static int trailers_atom_parser (struct ref_format * format UNUSED ,
404
+ struct used_atom * atom ,
398
405
const char * arg , struct strbuf * err )
399
406
{
400
407
atom -> u .contents .trailer_opts .no_divider = 1 ;
@@ -448,8 +455,9 @@ static int contents_atom_parser(struct ref_format *format, struct used_atom *ato
448
455
return 0 ;
449
456
}
450
457
451
- static int raw_atom_parser (struct ref_format * format , struct used_atom * atom ,
452
- const char * arg , struct strbuf * err )
458
+ static int raw_atom_parser (struct ref_format * format UNUSED ,
459
+ struct used_atom * atom ,
460
+ const char * arg , struct strbuf * err )
453
461
{
454
462
if (!arg )
455
463
atom -> u .raw_data .option = RAW_BARE ;
@@ -460,7 +468,8 @@ static int raw_atom_parser(struct ref_format *format, struct used_atom *atom,
460
468
return 0 ;
461
469
}
462
470
463
- static int oid_atom_parser (struct ref_format * format , struct used_atom * atom ,
471
+ static int oid_atom_parser (struct ref_format * format UNUSED ,
472
+ struct used_atom * atom ,
464
473
const char * arg , struct strbuf * err )
465
474
{
466
475
if (!arg )
@@ -479,7 +488,8 @@ static int oid_atom_parser(struct ref_format *format, struct used_atom *atom,
479
488
return 0 ;
480
489
}
481
490
482
- static int person_email_atom_parser (struct ref_format * format , struct used_atom * atom ,
491
+ static int person_email_atom_parser (struct ref_format * format UNUSED ,
492
+ struct used_atom * atom ,
483
493
const char * arg , struct strbuf * err )
484
494
{
485
495
if (!arg )
@@ -493,7 +503,8 @@ static int person_email_atom_parser(struct ref_format *format, struct used_atom
493
503
return 0 ;
494
504
}
495
505
496
- static int refname_atom_parser (struct ref_format * format , struct used_atom * atom ,
506
+ static int refname_atom_parser (struct ref_format * format UNUSED ,
507
+ struct used_atom * atom ,
497
508
const char * arg , struct strbuf * err )
498
509
{
499
510
return refname_atom_parser_internal (& atom -> u .refname , arg , atom -> name , err );
@@ -510,7 +521,8 @@ static align_type parse_align_position(const char *s)
510
521
return -1 ;
511
522
}
512
523
513
- static int align_atom_parser (struct ref_format * format , struct used_atom * atom ,
524
+ static int align_atom_parser (struct ref_format * format UNUSED ,
525
+ struct used_atom * atom ,
514
526
const char * arg , struct strbuf * err )
515
527
{
516
528
struct align * align = & atom -> u .align ;
@@ -562,7 +574,8 @@ static int align_atom_parser(struct ref_format *format, struct used_atom *atom,
562
574
return 0 ;
563
575
}
564
576
565
- static int if_atom_parser (struct ref_format * format , struct used_atom * atom ,
577
+ static int if_atom_parser (struct ref_format * format UNUSED ,
578
+ struct used_atom * atom ,
566
579
const char * arg , struct strbuf * err )
567
580
{
568
581
if (!arg ) {
@@ -577,7 +590,8 @@ static int if_atom_parser(struct ref_format *format, struct used_atom *atom,
577
590
return 0 ;
578
591
}
579
592
580
- static int rest_atom_parser (struct ref_format * format , struct used_atom * atom ,
593
+ static int rest_atom_parser (struct ref_format * format ,
594
+ struct used_atom * atom UNUSED ,
581
595
const char * arg , struct strbuf * err )
582
596
{
583
597
if (arg )
@@ -586,7 +600,8 @@ static int rest_atom_parser(struct ref_format *format, struct used_atom *atom,
586
600
return 0 ;
587
601
}
588
602
589
- static int head_atom_parser (struct ref_format * format , struct used_atom * atom ,
603
+ static int head_atom_parser (struct ref_format * format UNUSED ,
604
+ struct used_atom * atom ,
590
605
const char * arg , struct strbuf * err )
591
606
{
592
607
if (arg )
@@ -791,7 +806,7 @@ static void quote_formatting(struct strbuf *s, const char *str, ssize_t len, int
791
806
}
792
807
793
808
static int append_atom (struct atom_value * v , struct ref_formatting_state * state ,
794
- struct strbuf * unused_err )
809
+ struct strbuf * err UNUSED )
795
810
{
796
811
/*
797
812
* Quote formatting is only done when the stack has a single
@@ -841,7 +856,7 @@ static void end_align_handler(struct ref_formatting_stack **stack)
841
856
}
842
857
843
858
static int align_atom_handler (struct atom_value * atomv , struct ref_formatting_state * state ,
844
- struct strbuf * unused_err )
859
+ struct strbuf * err UNUSED )
845
860
{
846
861
struct ref_formatting_stack * new_stack ;
847
862
@@ -888,7 +903,7 @@ static void if_then_else_handler(struct ref_formatting_stack **stack)
888
903
}
889
904
890
905
static int if_atom_handler (struct atom_value * atomv , struct ref_formatting_state * state ,
891
- struct strbuf * unused_err )
906
+ struct strbuf * err UNUSED )
892
907
{
893
908
struct ref_formatting_stack * new_stack ;
894
909
struct if_then_else * if_then_else = xcalloc (1 ,
@@ -915,7 +930,8 @@ static int is_empty(struct strbuf *buf)
915
930
return cur == end ;
916
931
}
917
932
918
- static int then_atom_handler (struct atom_value * atomv , struct ref_formatting_state * state ,
933
+ static int then_atom_handler (struct atom_value * atomv UNUSED ,
934
+ struct ref_formatting_state * state ,
919
935
struct strbuf * err )
920
936
{
921
937
struct ref_formatting_stack * cur = state -> stack ;
@@ -952,7 +968,8 @@ static int then_atom_handler(struct atom_value *atomv, struct ref_formatting_sta
952
968
return 0 ;
953
969
}
954
970
955
- static int else_atom_handler (struct atom_value * atomv , struct ref_formatting_state * state ,
971
+ static int else_atom_handler (struct atom_value * atomv UNUSED ,
972
+ struct ref_formatting_state * state ,
956
973
struct strbuf * err )
957
974
{
958
975
struct ref_formatting_stack * prev = state -> stack ;
@@ -973,7 +990,8 @@ static int else_atom_handler(struct atom_value *atomv, struct ref_formatting_sta
973
990
return 0 ;
974
991
}
975
992
976
- static int end_atom_handler (struct atom_value * atomv , struct ref_formatting_state * state ,
993
+ static int end_atom_handler (struct atom_value * atomv UNUSED ,
994
+ struct ref_formatting_state * state ,
977
995
struct strbuf * err )
978
996
{
979
997
struct ref_formatting_stack * current = state -> stack ;
0 commit comments