Merge branch 'jk/maybe-unused-cleanup'
Code clean-up. * jk/maybe-unused-cleanup: grep: prefer UNUSED to MAYBE_UNUSED for pcre allocators gc: drop MAYBE_UNUSED annotation from used parametermaint
commit
f1160b2700
|
|
@ -260,7 +260,7 @@ static int pack_refs_condition(UNUSED struct gc_config *cfg)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static int maintenance_task_pack_refs(MAYBE_UNUSED struct maintenance_run_opts *opts,
|
||||
static int maintenance_task_pack_refs(struct maintenance_run_opts *opts,
|
||||
UNUSED struct gc_config *cfg)
|
||||
{
|
||||
struct child_process cmd = CHILD_PROCESS_INIT;
|
||||
|
|
|
|||
4
grep.c
4
grep.c
|
|
@ -245,7 +245,7 @@ static int is_fixed(const char *s, size_t len)
|
|||
#ifdef USE_LIBPCRE2
|
||||
#define GREP_PCRE2_DEBUG_MALLOC 0
|
||||
|
||||
static void *pcre2_malloc(PCRE2_SIZE size, MAYBE_UNUSED void *memory_data)
|
||||
static void *pcre2_malloc(PCRE2_SIZE size, void *memory_data UNUSED)
|
||||
{
|
||||
void *pointer = malloc(size);
|
||||
#if GREP_PCRE2_DEBUG_MALLOC
|
||||
|
|
@ -255,7 +255,7 @@ static void *pcre2_malloc(PCRE2_SIZE size, MAYBE_UNUSED void *memory_data)
|
|||
return pointer;
|
||||
}
|
||||
|
||||
static void pcre2_free(void *pointer, MAYBE_UNUSED void *memory_data)
|
||||
static void pcre2_free(void *pointer, void *memory_data UNUSED)
|
||||
{
|
||||
#if GREP_PCRE2_DEBUG_MALLOC
|
||||
static int count = 1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue