]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fixed embedded atf code warning (RT 46833)
authorFrancis Dupont <fdupont@isc.org>
Mon, 18 Dec 2017 15:14:47 +0000 (16:14 +0100)
committerFrancis Dupont <fdupont@isc.org>
Mon, 18 Dec 2017 15:14:47 +0000 (16:14 +0100)
unit/atf-src/atf-c/detail/tp_main.c

index 1f1222de8652b2f34c759626d74196f66d8aa661..2c773117f7684612baa7d3023131c01d7da5d29e 100644 (file)
@@ -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
 }
 
 /* ---------------------------------------------------------------------