This pre-emptively squashes some upcoming warnings when converting this file to
C++ which otherwise fail the CMake build:
cmd/tools/../../lib/cdt/cdt.h:259:66: error: invalid conversion from 'void*'
to 'pair_t*' [-fpermissive]
Gitlab: #2154
for (a = agnxtattr(g,kind,0); a; a = agnxtattr(g,kind,a)) {
name = a->name;
value = a->defval;
- rv = dtmatch(newdict, name);
+ rv = (attr_t*)dtmatch(newdict, name);
if (!rv) {
rv = NEW(attr_t);
rv->name = name;
pair_t *p;
size_t len;
- p = dtmatch(names, oldname);
+ p = (pair_t*)dtmatch(names, oldname);
if (p) {
p->cnt++;
len = strlen(oldname) + 100; /* 100 for "_gv" and decimal no. */