From: Grigorii Demidov Date: Tue, 2 Jun 2015 09:00:47 +0000 (+0200) Subject: tests: avoiding warnings X-Git-Tag: v1.0.0-beta1~127^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a71abac997d436f071e1ee7f24ee848d1a4edd2;p=thirdparty%2Fknot-resolver.git tests: avoiding warnings --- 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) {