[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #9337] apps/smtp: Make smtp_send_bodyh_data takes "c
From: |
Axel Lin |
Subject: |
[lwip-devel] [patch #9337] apps/smtp: Make smtp_send_bodyh_data takes "const char **from" parameter |
Date: |
Wed, 10 May 2017 02:38:51 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36 |
URL:
<http://savannah.nongnu.org/patch/?9337>
Summary: apps/smtp: Make smtp_send_bodyh_data takes "const
char **from" parameter
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: axellin
Submitted on: Wed 10 May 2017 06:38:50 AM UTC
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
Fixes below build error:
cc -g -Wall -DLWIP_DEBUG -pedantic -Werror -Wparentheses -Wsequence-point
-Wswitch-default -Wextra -Wundef -Wshadow -Wpointer-arith -Wcast-qual
-Wc++-compat -Wwrite-strings -Wold-style-definition -Wcast-align
-Wmissing-prototypes -Wredundant-decls -Wnested-externs -Wno-address
-Wunreachable-code -Wuninitialized -Wlogical-op -I. -I../../..
-I../../../../lwip/src/include -I../../../ports/unix/port/include
-I../../../../mbedtls/include -Wno-redundant-decls -DLWIP_HAVE_MBEDTLS=1 -c
../../../../lwip/src/apps/smtp/smtp.c
../../../../lwip/src/apps/smtp/smtp.c: In function
‘smtp_send_body_data_handler’:
../../../../lwip/src/apps/smtp/smtp.c:1487:41: error: cast discards
‘const’ qualifier from pointer target type [-Werror=cast-qual]
if((res = smtp_send_bodyh_data(pcb, (char **)&s->body, &s->body_len))
^
../../../../lwip/src/apps/smtp/smtp.c:1507:47: error: cast discards
‘const’ qualifier from pointer target type [-Werror=cast-qual]
((res = smtp_send_bodyh_data(pcb, (char **)&s->body,
&s->body_len)) == BDHALLDATASENT)
^
cc1: all warnings being treated as errors
../../Common.allports.mk:94: recipe for target 'smtp.o' failed
make: *** [smtp.o] Error 1
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 10 May 2017 06:38:50 AM UTC Name:
0001-apps-smtp-Make-smtp_send_bodyh_data-takes-const-char.patch Size: 3kB
By: axellin
<http://savannah.nongnu.org/patch/download.php?file_id=40641>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?9337>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [patch #9337] apps/smtp: Make smtp_send_bodyh_data takes "const char **from" parameter,
Axel Lin <=