PPP: fix unused parameter warning on prot_flavor if CHAP support is disabled

prot_flavor parameter is only used if CHAP support is enabled.
This commit is contained in:
Sylvain Rochet 2020-11-16 22:21:51 +01:00
parent 332119d7e0
commit a4514cf416

View File

@ -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(name);
LWIP_UNUSED_ARG(namelen); LWIP_UNUSED_ARG(namelen);
#endif /* HAVE_MULTILINK */ #endif /* HAVE_MULTILINK */
LWIP_UNUSED_ARG(prot_flavor); /* if CHAP_SUPPORT is disabled */
switch (protocol) { switch (protocol) {
#if CHAP_SUPPORT #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) { void auth_withpeer_success(ppp_pcb *pcb, int protocol, int prot_flavor) {
int bit; int bit;
const char *prot = ""; const char *prot = "";
LWIP_UNUSED_ARG(prot_flavor); /* if CHAP_SUPPORT is disabled */
switch (protocol) { switch (protocol) {
#if CHAP_SUPPORT #if CHAP_SUPPORT