From: Francis Dupont Date: Mon, 18 Dec 2017 15:11:45 +0000 (+0100) Subject: Fixed embedded atf code warning (RT 46833) X-Git-Tag: v9.13.0~334 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=36dccc165e5be20e1b1a5c777f00b593e78b2565;p=thirdparty%2Fbind9.git Fixed embedded atf code warning (RT 46833) --- diff --git a/unit/atf-src/atf-c/detail/tp_main.c b/unit/atf-src/atf-c/detail/tp_main.c index 1f1222de865..2c773117f76 100644 --- a/unit/atf-src/atf-c/detail/tp_main.c +++ b/unit/atf-src/atf-c/detail/tp_main.c @@ -285,7 +285,9 @@ list_tcs(const atf_tp_t *tp) atf_utils_free_charpp(vars); } - free(tcs); +#define UNCONST(a) ((void *)(unsigned long)(const void *)(a)) + free(UNCONST(tcs)); +#undef UNCONST } /* ---------------------------------------------------------------------