From 7a71abac997d436f071e1ee7f24ee848d1a4edd2 Mon Sep 17 00:00:00 2001 From: Grigorii Demidov Date: Tue, 2 Jun 2015 11:00:47 +0200 Subject: [PATCH] tests: avoiding warnings --- tests/test_integration.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_integration.c b/tests/test_integration.c index c39a58b7d..1a3220296 100644 --- a/tests/test_integration.c +++ b/tests/test_integration.c @@ -71,7 +71,8 @@ static PyObject* init(PyObject* self, PyObject* args) memset(&opts, 0, sizeof(opts)); opts.path = global_tmpdir; opts.mapsize = 100 * 4096; - assert(kr_cache_open(&global_context.cache, NULL, &opts, &global_mm) == 0); + int ret = kr_cache_open(&global_context.cache, NULL, &opts, &global_mm); + assert(ret == 0); /* No configuration parsing support yet. */ if (strstr(config, "query-minimization: on") == NULL) { -- 2.47.3