iproute2/bridge
Gabi Falk 53a89bfd86 bridge/vlan.c: bridge/vlan.c: fix build with gcc 14 on musl systems
On glibc based systems the definition of 'struct timeval' is pulled in
with inclusion of <stdlib.h> header, but on musl based systems it
doesn't work this way.  Missing definition triggers an
incompatible-pointer-types error with gcc 14 (warning on previous
versions of gcc):

../include/json_print.h:80:30: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
   80 | _PRINT_FUNC(tv, const struct timeval *)
      |                              ^~~~~~~
../include/json_print.h:50:37: note: in definition of macro '_PRINT_FUNC'
   50 |                                     type value);                        \
      |                                     ^~~~
../include/json_print.h:80:30: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
   80 | _PRINT_FUNC(tv, const struct timeval *)
      |                              ^~~~~~~
../include/json_print.h:55:45: note: in definition of macro '_PRINT_FUNC'
   55 |                                             type value)                 \
      |                                             ^~~~
../include/json_print.h: In function 'print_tv':
../include/json_print.h:58:48: error: passing argument 5 of 'print_color_tv' from incompatible pointer type [-Wincompatible-pointer-types]
   58 |                                                value);                  \
      |                                                ^~~~~
      |                                                |
      |                                                const struct timeval *

Signed-off-by: Gabi Falk <gabifalk@gmx.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2024-05-13 22:21:38 -07:00
..
.gitignore Add bridge command 2012-08-01 15:23:49 -07:00
br_common.h bridge: make print_vlan_info static 2023-06-02 09:33:34 -07:00
bridge.c bridge: vlan: fix compressvlans usage 2024-03-26 10:11:05 -07:00
fdb.c bridge: fdb: support match on [no]router flag in flush command 2023-10-20 09:43:05 -06:00
link.c bridge: Add backup nexthop ID support 2023-08-04 09:09:43 -06:00
Makefile bridge: vxlan device vnifilter support 2022-05-08 09:50:32 -06:00
mdb.c bridge: mdb: Add flush support 2023-12-30 14:26:19 -07:00
monitor.c bridge: use SPDX 2023-01-14 09:00:34 -08:00
vlan.c bridge/vlan.c: bridge/vlan.c: fix build with gcc 14 on musl systems 2024-05-13 22:21:38 -07:00
vni.c bridge/vlan.c: bridge/vlan.c: fix build with gcc 14 on musl systems 2024-05-13 22:21:38 -07:00