This is the mail archive of the ecos-devel@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFC 8/9] * Fix LWIP compiler warnings


Add some casts to prevent compiler warnings

Signed-off-by: Andrew Parlane <andrewp@carallon.com>
Signed-off-by: Will Wagner <willw@carallon.com>
---
 packages/net/lwip_tcpip/current/include/lwip/pbuf.h  | 2 +-
 packages/net/lwip_tcpip/current/src/core/ipv4/igmp.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/packages/net/lwip_tcpip/current/include/lwip/pbuf.h b/packages/net/lwip_tcpip/current/include/lwip/pbuf.h
index 99d5443..99cf20a 100644
--- a/packages/net/lwip_tcpip/current/include/lwip/pbuf.h
+++ b/packages/net/lwip_tcpip/current/include/lwip/pbuf.h
@@ -129,7 +129,7 @@ struct pbuf_custom {
 #endif /* PBUF_POOL_FREE_OOSEQ */
 #if NO_SYS && PBUF_POOL_FREE_OOSEQ
 extern volatile u8_t pbuf_free_ooseq_pending;
-void pbuf_free_ooseq();
+void pbuf_free_ooseq(void);
 /** When not using sys_check_timeouts(), call PBUF_CHECK_FREE_OOSEQ()
at regular intervals from main level to check if ooseq pbufs need to be
     freed! */
diff --git a/packages/net/lwip_tcpip/current/src/core/ipv4/igmp.c b/packages/net/lwip_tcpip/current/src/core/ipv4/igmp.c
index 45bb5d9..f273b2f 100644
--- a/packages/net/lwip_tcpip/current/src/core/ipv4/igmp.c
+++ b/packages/net/lwip_tcpip/current/src/core/ipv4/igmp.c
@@ -166,8 +166,8 @@ igmp_init(void)
  * Dump global IGMP groups list
  */
 void
-igmp_dump_group_list()
-{
+igmp_dump_group_list(void)
+{
   struct igmp_group *group = igmp_group_list;

   while (group != NULL) {
--
1.8.1.msysgit.1



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]