summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2019-07-10 11:26:06 +0000
committerGary Lockyer <gary@samba.org>2019-07-16 22:52:25 +0000
commit80e57a10164cc8482f0611cbce4086521051ec9b (patch)
tree8b9976ef7a179286b97cd10b2c1ac99a5f4350a9 /source3/registry
parente3e9330609b527a101dfde9a1109da7cb389ed32 (diff)
downloadsamba-80e57a10164cc8482f0611cbce4086521051ec9b.tar.gz
s3/registry: clang: Fix 'initialization value is never read'
Fixes: source3/registry/reg_api.c:139:14: warning: Value stored to 'result' during its initialization is never read <--[clang] WERROR result = WERR_OK; ^~~~~~ ~~~~~~~ ource3/registry/reg_api.c:958:9: warning: Value stored to 'werr' during its initialization is never read <--[clang] WERROR werr = WERR_OK; ^~~~ ~~~~~~~ 2 warnings generated. Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/registry/reg_api.c b/source3/registry/reg_api.c
index 2190d2a0919..62cb0e5f846 100644
--- a/source3/registry/reg_api.c
+++ b/source3/registry/reg_api.c
@@ -136,7 +136,7 @@ static WERROR regkey_open_onelevel(TALLOC_CTX *mem_ctx,
uint32_t access_desired,
struct registry_key **pregkey)
{
- WERROR result = WERR_OK;
+ WERROR result;
struct registry_key *regkey;
struct registry_key_handle *key;
@@ -955,7 +955,7 @@ static WERROR reg_deletekey_recursive_internal(struct registry_key *parent,
const char *path,
bool del_key, bool lazy)
{
- WERROR werr = WERR_OK;
+ WERROR werr;
struct registry_key *key;
char *subkey_name = NULL;
uint32_t i;