From d8ad73e9377adea67819db083d66debc39dec993 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 30 Nov 2018 21:56:16 +0100 Subject: [PATCH] gcc: avoid shadowing use_aio Function use_aio() is already declared, avoid its shadowing. lvm-globals.h:59: warning: shadowed declaration is here --- lib/misc/lvm-globals.c | 4 ++-- lib/misc/lvm-globals.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/misc/lvm-globals.c b/lib/misc/lvm-globals.c index 0ad60fd93..9d169e7a1 100644 --- a/lib/misc/lvm-globals.c +++ b/lib/misc/lvm-globals.c @@ -70,9 +70,9 @@ void init_test(int level) _test = level; } -void init_use_aio(int use_aio) +void init_use_aio(int useaio) { - _use_aio = use_aio; + _use_aio = useaio; } void init_md_filtering(int level) diff --git a/lib/misc/lvm-globals.h b/lib/misc/lvm-globals.h index 42dcc341e..793becafc 100644 --- a/lib/misc/lvm-globals.h +++ b/lib/misc/lvm-globals.h @@ -25,7 +25,7 @@ enum dev_ext_e; void init_verbose(int level); void init_silent(int silent); void init_test(int level); -void init_use_aio(int use_aio); +void init_use_aio(int useaio); void init_md_filtering(int level); void init_internal_filtering(int level); void init_fwraid_filtering(int level);