master - gcc: avoid shadowing activate_lv
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=0d61a171520beeff0bf592458359d04257e2c780 Commit: 0d61a171520beeff0bf592458359d04257e2c780 Parent: 1aac59f82ac021afe8a0a7aa6059e068637db9ba Author: Zdenek Kabelac <[email protected]> AuthorDate: Fri Nov 30 21:50:41 2018 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Sat Dec 1 01:06:57 2018 +0100
gcc: avoid shadowing activate_lv
Function activate_lv() is already declared, avoid its shadowing. activate.h:133: warning: shadowed declaration is here
--- lib/activate/activate.c | 8 ++++---- lib/activate/activate.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-)
lib/activate/activate.c +4 -4
@@ -2476,19 +2476,19 @@ out:/* Test if LV passes filter */ int lv_activation_filter (struct cmd_context *cmd,const char *lvid_s, -int *activate_lv,const struct logical_volume *lv) +int *activate,const struct logical_volume *lv) {if (!activation ()) { - *activate_lv =1 ; + *activate =1 ;return 1 ; }if (!_passes_activation_filter (cmd, lv)) {log_verbose ("Not activating %s since it does not pass " "activation filter." ,display_lvname (lv)); - *activate_lv =0 ; + *activate =0 ; }else - *activate_lv =1 ; + *activate =1 ;return 1 ; }
lib/activate/activate.h +2 -2
@@ -162,10 +162,10 @@ int lv_info_with_seg_status(struct cmd_context *cmd,int lv_check_not_in_use (const struct logical_volume *lv,int error_if_used);/* -* Returns 1 if activate_lv has been set: 1 = activate; 0 = don't. +* Returns 1 if activate has been set: 1 = activate; 0 = don't. */ int lv_activation_filter (struct cmd_context *cmd,const char *lvid_s, -int *activate_lv,const struct logical_volume *lv); +int *activate,const struct logical_volume *lv);/* * Checks against the auto_activation_volume_list and * returns 1 if the LV should be activated, 0 otherwise.