mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3/param: clang: Fix 'Value stored to 'bRetval' is never read'
Fixes: source3/param/loadparm.c:2770:2: warning: Value stored to 'bRetval' is never read <--[clang] bRetval = false; ^ ~~~~~ source3/param/loadparm.c:3868:2: warning: Value stored to 'bRetval' is never read <--[clang] bRetval = false; ^ ~~~~~ 2 warnings generated. Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
parent
06c3a493d9
commit
4f61a9980d
@ -2766,7 +2766,6 @@ bool lp_do_section(const char *pszSectionName, void *userdata)
|
||||
bool bRetval;
|
||||
bool isglobal = ((strwicmp(pszSectionName, GLOBAL_NAME) == 0) ||
|
||||
(strwicmp(pszSectionName, GLOBAL_NAME2) == 0));
|
||||
bRetval = false;
|
||||
|
||||
/* if we were in a global section then do the local inits */
|
||||
if (bInGlobalSection && !isglobal)
|
||||
@ -3864,8 +3863,6 @@ static bool lp_load_ex(const char *pszFname,
|
||||
TALLOC_CTX *frame = talloc_stackframe();
|
||||
struct loadparm_context *lp_ctx;
|
||||
|
||||
bRetval = false;
|
||||
|
||||
DEBUG(3, ("lp_load_ex: refreshing parameters\n"));
|
||||
|
||||
bInGlobalSection = true;
|
||||
|
Loading…
Reference in New Issue
Block a user