From 8228372b0ec9b5f349ad428ad8fe2d3cbc6e7f65 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Wed, 25 Jul 2012 21:15:23 +0200 Subject: [PATCH] libmount: fix shadow declaration libmount/src/tab_update.c:203:8: warning: declaration of 'rc' shadows a previous local [-Wshadow] libmount/src/tab_update.c:159:6: warning: shadowed declaration is here [-Wshadow] Signed-off-by: Sami Kerola --- libmount/src/tab_update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmount/src/tab_update.c b/libmount/src/tab_update.c index 56e87cf0eb..caabd05c20 100644 --- a/libmount/src/tab_update.c +++ b/libmount/src/tab_update.c @@ -200,7 +200,7 @@ int mnt_update_set_fs(struct libmnt_update *upd, unsigned long mountflags, } else if (fs) { if (upd->userspace_only && !(mountflags & MS_MOVE)) { - int rc = utab_new_entry(upd, fs, mountflags); + rc = utab_new_entry(upd, fs, mountflags); if (rc) return rc; } else { -- 2.47.3