mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
lib/util: clang: Fix Value stored during its initialization is never read
Fixes: lib/util/util_tdb.c:385:11: warning: Value stored to 'result' during its initialization is never read <--[clang] Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
parent
cf43f1d052
commit
1d00bd9f0b
@ -382,7 +382,7 @@ int tdb_traverse_delete_fn(struct tdb_context *the_tdb, TDB_DATA key, TDB_DATA d
|
|||||||
|
|
||||||
NTSTATUS map_nt_error_from_tdb(enum TDB_ERROR err)
|
NTSTATUS map_nt_error_from_tdb(enum TDB_ERROR err)
|
||||||
{
|
{
|
||||||
NTSTATUS result = NT_STATUS_INTERNAL_ERROR;
|
NTSTATUS result;
|
||||||
|
|
||||||
switch (err) {
|
switch (err) {
|
||||||
case TDB_SUCCESS:
|
case TDB_SUCCESS:
|
||||||
@ -430,6 +430,9 @@ NTSTATUS map_nt_error_from_tdb(enum TDB_ERROR err)
|
|||||||
case TDB_ERR_NESTING:
|
case TDB_ERR_NESTING:
|
||||||
result = NT_STATUS_INTERNAL_ERROR;
|
result = NT_STATUS_INTERNAL_ERROR;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
result = NT_STATUS_INTERNAL_ERROR;
|
||||||
|
break;
|
||||||
};
|
};
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user