From 795f05c5d3966870d4bb9a954d763cf39ac88cb7 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Thu, 17 May 2018 17:04:19 +0800 Subject: [PATCH] apps/smtp: Fix build warning when SMTP_CHECK_DATA==0 Fix build warning: 'smtp_verify' 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 87c1e09b..ba037faa 100644 --- a/src/apps/smtp/smtp.c +++ b/src/apps/smtp/smtp.c @@ -292,7 +292,9 @@ static char smtp_auth_plain[SMTP_MAX_USERNAME_LEN + SMTP_MAX_PASS_LEN + 3]; /** Length of smtp_auth_plain string (cannot use strlen since it includes \0) */ static size_t smtp_auth_plain_len; +#if SMTP_CHECK_DATA static err_t smtp_verify(const char *data, size_t data_len, u8_t linebreaks_allowed); +#endif /* SMTP_CHECK_DATA */ static err_t smtp_tcp_recv(void *arg, struct altcp_pcb *pcb, struct pbuf *p, err_t err); static void smtp_tcp_err(void *arg, err_t err); static err_t smtp_tcp_poll(void *arg, struct altcp_pcb *pcb);