Open
Conversation
this commit fixes the warning below: ``` In file included from .pio/libdeps/m5stack-fire/WireGuard-ESP32/src/wireguardif.c:51: .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" ^~~~~~~
This commit fixes the following warning:
.pio/libdeps/m5stack-fire/WireGuard-ESP32/src/wireguardif.c: In function 'wireguardif_init':
.pio/libdeps/m5stack-fire/WireGuard-ESP32/src/wireguardif.c:1103: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 .platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_netif/include/esp_netif.h:35,
from .platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/tcpip_adapter/include/tcpip_adapter.h:16,
from .pio/libdeps/m5stack-fire/WireGuard-ESP32/src/wireguardif.c:51:
.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);
~~~~~~~~^~~~~
This commit fixes the following warning:
.pio/libdeps/m5stack-fire/WireGuard-ESP32/src/wireguardif.c: In function 'wireguardif_tmr':
.pio/libdeps/m5stack-fire/WireGuard-ESP32/src/wireguardif.c:1039:5: warning: implicit declaration of function 'handshake_destroy'; did you mean 'keypair_destroy'? [-Wimplicit-function-declaration]
handshake_destroy(&peer->handshake);
^~~~~~~~~~~~~~~~~
keypair_destroy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi,
Thank you for providing this wonderful library!
I received some warning messages when I built my code with this library, but it looked like it could be easily fixed so I fixed it on my end.
Please take a look, thank you in advance!