Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler warning lwip / xadapter.c #282

Open
blofeld80 opened this issue Jan 5, 2024 · 0 comments
Open

Compiler warning lwip / xadapter.c #282

blofeld80 opened this issue Jan 5, 2024 · 0 comments

Comments

@blofeld80
Copy link

Hi,

there is another warning when compiling xadapter.c

embeddedsw/ThirdParty/sw_services/lwip211/src/contrib/ports/xilinx/netif/xadapter.c:174:57: warning: passing argument 2 of 'netif_add' from incompatible pointer type [-Wincompatible-pointer-types]
      |                                 return netif_add(netif, ipaddr, netmask, gw,
      |                                                         ^~~~~~
      |                                                         |
      |                                                         ip_addr_t * {aka struct ip_addr *}

The fragement

return netif_add(netif, ipaddr, netmask, gw,

should become

return netif_add( netif,
		(const ip4_addr_t *) ipaddr,
		(const ip4_addr_t *) netmask,
		(const ip4_addr_t *) gw,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant