X-RT-Original-Encoding: utf-8 Content-Transfer-Encoding: quoted-printable content-type: text/plain; charset="utf-8" Content-Length: 1461 The return from atf_tp_get_tcs() should be declared "const atf_tc_t **” rather then "const atf_tc_t *const*”. There is zero reason for the extra const. tcs also need a similar adjustment > On 12 Dec 2017, at 12:39 am, Francis Dupont via RT wrote: > > > Mon Dec 11 13:39:38 2017: Request 46833 was acted upon. > Transaction: Ticket created by fdupont > Queue: bind9-public > Subject: Warning in embedded atf code > Owner: Nobody > Requestors: Francis_Dupont@isc.org > Status: open > Ticket > ----------------------------------------------------------------------- > > ISC DHCP builds show it so they are in v9_11 branch > but according to diff master has exactly the same code: > > Building ATF support > atf-c/detail/tp_main.c:288:10: warning: passing 'const atf_tc_t *const *' (aka 'const struct atf_tc *const *') to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] > free(tcs); > ^~~ > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/stdlib.h:151:18: note: passing argument to parameter here > void free(void *); > ^ > 1 warning generated. > > I suggest a cast. > -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: marka@isc.org