ciniml / WireGuard-ESP32-Arduino

WireGuard implementation for ESP32 Arduino
Other
782 stars 60 forks source link

Warning during compilation - Header deprecated #39

Open JNRAY opened 3 months ago

JNRAY commented 3 months ago

Hello,

When I launch the compilation. I got the following message.

Compiling .pio/build/upesy_wroom/libec1/WiFi/WiFiAP.cpp.o In file included from .pio/libdeps/upesy_wroom/WireGuard-ESP32/src/wireguardif.c:51: /Users/jeannoel/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/tcpip_adapter/include/tcpip_adapter.h:15:2: warning: #warning "This header is deprecated, please use new network related API in esp_netif.h" [-Wcpp]

warning "This header is deprecated, please use new network related API in esp_netif.h"

^~~ Compiling .pio/build/upesy_wroom/libec1/WiFi/WiFiClient.cpp.o .pio/libdeps/upesy_wroom/WireGuard-ESP32/src/wireguardif.c: In function 'wireguardif_tmr': .pio/libdeps/upesy_wroom/WireGuard-ESP32/src/wireguardif.c:868:5: warning: implicit declaration of function 'handshake_destroy'; did you mean 'keypair_destroy'? [-Wimplicit-function-declaration] handshake_destroy(&peer->handshake); ^~~~~ keypair_destroy .pio/libdeps/upesy_wroom/WireGuard-ESP32/src/wireguardif.c: In function 'wireguardif_init': .pio/libdeps/upesy_wroom/WireGuard-ESP32/src/wireguardif.c:924:48: warning: passing argument 2 of 'tcpip_adapter_get_netif' from incompatible pointer type [-Wincompatible-pointer-types] tcpip_adapter_get_netif(TCPIP_ADAPTER_IF_STA, &underlying_netif); ^~~~~ In file included from /Users/jeannoel/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_netif/include/esp_netif.h:35, from /Users/jeannoel/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/tcpip_adapter/include/tcpip_adapter.h:16, from .pio/libdeps/upesy_wroom/WireGuard-ESP32/src/wireguardif.c:51: /Users/jeannoel/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/tcpip_adapter/include/tcpip_adapter.h:95:72: note: expected 'void ' but argument is of type 'struct netif ' esp_err_t tcpip_adapter_get_netif(tcpip_adapter_if_t tcpip_if, void ** netif);


~~

Could you tell me how to solve this issues.

Thank in advance.

Jean Noël Raynaud