mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +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:
@ -2766,7 +2766,6 @@ bool lp_do_section(const char *pszSectionName, void *userdata)
|
|||||||
bool bRetval;
|
bool bRetval;
|
||||||
bool isglobal = ((strwicmp(pszSectionName, GLOBAL_NAME) == 0) ||
|
bool isglobal = ((strwicmp(pszSectionName, GLOBAL_NAME) == 0) ||
|
||||||
(strwicmp(pszSectionName, GLOBAL_NAME2) == 0));
|
(strwicmp(pszSectionName, GLOBAL_NAME2) == 0));
|
||||||
bRetval = false;
|
|
||||||
|
|
||||||
/* if we were in a global section then do the local inits */
|
/* if we were in a global section then do the local inits */
|
||||||
if (bInGlobalSection && !isglobal)
|
if (bInGlobalSection && !isglobal)
|
||||||
@ -3864,8 +3863,6 @@ static bool lp_load_ex(const char *pszFname,
|
|||||||
TALLOC_CTX *frame = talloc_stackframe();
|
TALLOC_CTX *frame = talloc_stackframe();
|
||||||
struct loadparm_context *lp_ctx;
|
struct loadparm_context *lp_ctx;
|
||||||
|
|
||||||
bRetval = false;
|
|
||||||
|
|
||||||
DEBUG(3, ("lp_load_ex: refreshing parameters\n"));
|
DEBUG(3, ("lp_load_ex: refreshing parameters\n"));
|
||||||
|
|
||||||
bInGlobalSection = true;
|
bInGlobalSection = true;
|
||||||
|
Reference in New Issue
Block a user