ebtables: fix compilation with GCC14
authorGeorgi Valkov <gvalkov@gmail.com>
Mon, 27 May 2024 20:23:20 +0000 (23:23 +0300)
committerRobert Marko <robimarko@gmail.com>
Tue, 28 May 2024 08:41:45 +0000 (10:41 +0200)
commit32e4c50d24d08570c6ae34d05922f1d9d879c0f2
tree1a4c980272175a950a33298aabcc2888138f22f3
parent9ec3b11d370b7ed209124165971f242c2d634ecc
ebtables: fix compilation with GCC14

Remove 100-musl_fix.patch, which is no longer needed
and causes a build error with gcc-14.

Fixes:
useful_functions.c:63:41: error: passing argument 1 of 'ether_ntoa' from incompatible pointer type [-Wincompatible-pointer-types]
   63 |                 printf("%s", ether_ntoa((struct ether_addr *) mac));
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                                         |
      |                                         struct ether_addr *
In file included from include/ebtables_u.h:28,
                 from useful_functions.c:25:
/Volumes/wrt3200/openwrt/staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-14.1.0_musl_eabi/include/netinet/ether.h:10:19: note: expected 'const struct ether_addr *' but argument is of type 'struct ether_addr *'
   10 | char *ether_ntoa (const struct ether_addr *);
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15576
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/network/utils/ebtables/Makefile
package/network/utils/ebtables/patches/100-musl_fix.patch [deleted file]