Skip to content

community/mtm: fix build with gcc 14 on 32-bit arches

mio requested to merge mio/aports:mtm into master

Fix -Wincompatible-pointer-types error with gcc 14 on 32-bit arches (error log).

vtparser.c: In function 'docontrol':
vtparser.c:94:45: error: passing argument 7 of 'v->cons[w]' from incompatible pointer type [-Wincompatible-pointer-types]
   94 |             f (v, v->p, w, v->inter, n, a, v->oscbuf);  \
      |                                            ~^~~~~~~~
      |                                             |
      |                                             int *
vtparser.c:97:1: note: in expansion of macro 'DO'
   97 | DO(control, w < MAXCALLBACK && v->cons[w], v->cons[w], 0, NULL)
      | ^~
vtparser.c:94:45: note: expected 'const wchar_t *' {aka 'const long int *'} but argument is of type 'int *'
   94 |             f (v, v->p, w, v->inter, n, a, v->oscbuf);  \
      |                                            ~^~~~~~~~
vtparser.c:97:1: note: in expansion of macro 'DO'
   97 | DO(control, w < MAXCALLBACK && v->cons[w], v->cons[w], 0, NULL)
      | ^~

Merge request reports

Loading