summaryrefslogtreecommitdiff
path: root/lib/compression
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2013-12-10 17:43:55 +0100
committerJeremy Allison <jra@samba.org>2013-12-12 14:21:26 -0800
commit094747aaf35dab9886fd567b45b1213e7dbe76c0 (patch)
treecbf4e44ab198d746495fe73e7a66bb5ea10ff0f8 /lib/compression
parent0275410e02d9c8fd8c728b1d7811a3dfc05ab4e4 (diff)
downloadsamba-094747aaf35dab9886fd567b45b1213e7dbe76c0.tar.gz
lib/compression: fix a compiler warnings
about set but unused variable Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/compression')
-rw-r--r--lib/compression/testsuite.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/compression/testsuite.c b/lib/compression/testsuite.c
index 5758891b268..d897c88a192 100644
--- a/lib/compression/testsuite.c
+++ b/lib/compression/testsuite.c
@@ -29,7 +29,6 @@
static bool test_lzxpress(struct torture_context *test)
{
TALLOC_CTX *tmp_ctx = talloc_new(test);
- uint8_t *data;
const char *fixed_data = "this is a test. and this is a test too";
const uint8_t fixed_out[] = { 0x00, 0x20, 0x00, 0x04, 0x74, 0x68, 0x69, 0x73,
0x20, 0x10, 0x00, 0x61, 0x20, 0x74, 0x65, 0x73,
@@ -39,7 +38,6 @@ static bool test_lzxpress(struct torture_context *test)
ssize_t c_size;
uint8_t *out, *out2;
- data = talloc_size(tmp_ctx, 1023);
out = talloc_size(tmp_ctx, 2048);
memset(out, 0x42, talloc_get_size(out));