lib/talloc: clang: Fix 'Value stored during its initialization is never read'
authorNoel Power <noel.power@suse.com>
Tue, 17 Sep 2019 08:13:00 +0000 (08:13 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 26 Sep 2019 18:41:27 +0000 (18:41 +0000)
commit58400d6e65f70a256ebd900c3eca1c945b71be10
treec8055a95f054befed530f215f19c9c7e8c3c9b0e
parent32d487d0746b0fc8888ed37dfbfae3245b269dd7
lib/talloc: clang: Fix 'Value stored during its initialization is never read'

Fixes:

ib/talloc/pytalloc_util.c:245:8: warning: Value stored to 'type_obj' during its initialization is never read <--[clang]
        void *type_obj = talloc_check_name(ptr, type_name);
              ^~~~~~~~   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/talloc/pytalloc_util.c