From a4514cf41642d849d33fa37044ee3a0cd5912336 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Mon, 16 Nov 2020 22:21:51 +0100 Subject: [PATCH] PPP: fix unused parameter warning on prot_flavor if CHAP support is disabled prot_flavor parameter is only used if CHAP support is enabled. --- src/netif/ppp/auth.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/netif/ppp/auth.c b/src/netif/ppp/auth.c index b21ce807..3e174187 100644 --- a/src/netif/ppp/auth.c +++ b/src/netif/ppp/auth.c @@ -1049,6 +1049,7 @@ void auth_peer_success(ppp_pcb *pcb, int protocol, int prot_flavor, const char * LWIP_UNUSED_ARG(name); LWIP_UNUSED_ARG(namelen); #endif /* HAVE_MULTILINK */ + LWIP_UNUSED_ARG(prot_flavor); /* if CHAP_SUPPORT is disabled */ switch (protocol) { #if CHAP_SUPPORT @@ -1136,6 +1137,7 @@ void auth_withpeer_fail(ppp_pcb *pcb, int protocol) { void auth_withpeer_success(ppp_pcb *pcb, int protocol, int prot_flavor) { int bit; const char *prot = ""; + LWIP_UNUSED_ARG(prot_flavor); /* if CHAP_SUPPORT is disabled */ switch (protocol) { #if CHAP_SUPPORT