[PATCH] regedit: Rename variable to fix compile warning

Jeremy Allison jra at samba.org
Wed Feb 18 15:03:08 MST 2015


On Wed, Feb 18, 2015 at 02:53:17PM -0700, Christof Schmitt wrote:
> From 97fd05b8b8afca4d4c2e91e0385775e5a5ecc96f Mon Sep 17 00:00:00 2001
> From: Christof Schmitt <cs at samba.org>
> Date: Wed, 18 Feb 2015 14:42:11 -0700
> Subject: [PATCH] regedit: Rename variable to fix compile warning
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
> 
> With --picky-developer this warning is turned into an error:
> 
> cc1: warnings being treated as errors
> ../source3/utils/regedit_treeview.c: In function ‘tree_node_load_children’:
> ../source3/utils/regedit_treeview.c:256: error: declaration of ‘key_name’ shadows a global declaration
> /usr/include/ncurses.h:1419: error: shadowed declaration is here
> 
> Fix this by renaming the local variable.
> 
> Signed-off-by: Christof Schmitt <cs at samba.org>

LGTM - pushed.


More information about the samba-technical mailing list