]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib/util/tests: clang fix Value stored to 'lines' is never read warning
authorNoel Power <noel.power@suse.com>
Thu, 23 May 2019 13:52:50 +0000 (13:52 +0000)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 4 Jun 2019 22:13:07 +0000 (22:13 +0000)
Fixes

lib/util/tests/file.c:153:2: warning: Value stored to 'lines' is never read <--[clang]

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/util/tests/file.c

index ca0416e20e6f5e331306f96e0e7561f515702a38..55c9d4cec9a6e5adffb1a48299307223be11e781 100644 (file)
@@ -150,7 +150,7 @@ static bool test_file_lines_load(struct torture_context *tctx)
                                 strlen(TEST_DATA_EMPTY)),
                       "saving file");
 
-       lines = file_lines_load(TEST_FILENAME, &numlines, 0, mem_ctx);
+       (void)file_lines_load(TEST_FILENAME, &numlines, 0, mem_ctx);
 
        torture_assert_int_equal(tctx, numlines, 0, "Lines");