From 4f61a9980dbd23774e7d0c205e59dc6c593067dd Mon Sep 17 00:00:00 2001 From: Noel Power Date: Thu, 11 Jul 2019 11:36:46 +0000 Subject: 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 Reviewed-by: Gary Lockyer --- source3/param/loadparm.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'source3/param') 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; -- cgit v1.2.1