Open GreenYun opened 2 years ago
me too
algorithms/mda/interface.c:185:44: error: argument 1 of type ‘const mda_interface_t *[2]’ with mismatched bound [-Werror=array-parameter=]
185 | void mda_link_dump(const mda_interface_t * link[2], bool do_resolv)
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
In file included from algorithms/mda/interface.c:1:
algorithms/mda/interface.h:114:45: note: previously declared as ‘const mda_interface_t **’
114 | void mda_link_dump(const mda_interface_t ** link, bool do_resolv);
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:826: algorithms/mda/interface.lo] Error 1
make[2]: Leaving directory '/root/git/libparistraceroute/libparistraceroute'
make[1]: *** [Makefile:543: all] Error 2
make[1]: Leaving directory '/root/git/libparistraceroute/libparistraceroute'
make: *** [Makefile:401: all-recursive] Error 1
on Ubuntu-22.04
When compiling with GCC 12, the following warnings are generated: