summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2019-07-11 11:36:46 +0000
committerGary Lockyer <gary@samba.org>2019-07-16 22:52:24 +0000
commit4f61a9980dbd23774e7d0c205e59dc6c593067dd (patch)
tree2a61eef470b35294034ac849018db9c49a758466 /source3/param
parent06c3a493d99846af62c185a9db1a6823726ac1fc (diff)
downloadsamba-4f61a9980dbd23774e7d0c205e59dc6c593067dd.tar.gz
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>
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index a8d5fdc5954..9e97d719f4e 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -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;