From ec8c764fcbcaeb8be71e0d3f62ef634a138d2b83 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Thu, 17 May 2018 19:50:17 +0800 Subject: [PATCH] apps/smtp: Fix build warning when !(SMTP_SUPPORT_AUTH_PLAIN || SMTP_SUPPORT_AUTH_LOGIN) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix build warning: ‘smtp_base64_encode’ declared ‘static’ but never defined. Signed-off-by: Axel Lin --- src/apps/smtp/smtp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/apps/smtp/smtp.c b/src/apps/smtp/smtp.c index ba037faa..5ecf4627 100644 --- a/src/apps/smtp/smtp.c +++ b/src/apps/smtp/smtp.c @@ -303,7 +303,9 @@ static err_t smtp_tcp_connected(void *arg, struct altcp_pcb *pcb, err_t err); #if LWIP_DNS static void smtp_dns_found(const char* hostname, const ip_addr_t *ipaddr, void *arg); #endif /* LWIP_DNS */ +#if SMTP_SUPPORT_AUTH_PLAIN || SMTP_SUPPORT_AUTH_LOGIN static size_t smtp_base64_encode(char* target, size_t target_len, const char* source, size_t source_len); +#endif /* SMTP_SUPPORT_AUTH_PLAIN || SMTP_SUPPORT_AUTH_LOGIN */ static enum smtp_session_state smtp_prepare_mail(struct smtp_session *s, u16_t *tx_buf_len); static void smtp_send_body(struct smtp_session *s, struct altcp_pcb *pcb); static void smtp_process(void *arg, struct altcp_pcb *pcb, struct pbuf *p);