lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE : [lwip-users] Compile warnings in socket.c


From: Frédéric BERNON
Subject: RE : [lwip-users] Compile warnings in socket.c
Date: Mon, 30 Jul 2007 13:59:33 +0200

If you're not with LWIP_DEBUG defined, we could have the same problem with 
domain from lwip_socket, and how from lwip_shutdown. Ok for this patch ?
 
Index: src/api/sockets.c
===================================================================
RCS file: /sources/lwip/lwip/src/api/sockets.c,v
retrieving revision 1.73
diff -w -b -u -0 -p -r1.73 sockets.c
--- src/api/sockets.c   29 Jul 2007 09:25:19 -0000      1.73
+++ src/api/sockets.c   30 Jul 2007 10:07:34 -0000
@@ -612,0 +613,2 @@ lwip_socket(int domain, int type, int pr
+  LWIP_UNUSED_ARG(domain);
+  
@@ -854,0 +857,2 @@ event_callback(struct netconn *conn, enu
+  LWIP_UNUSED_ARG(len);
+
@@ -925,0 +930 @@ int lwip_shutdown(int s, int how)
+  LWIP_UNUSED_ARG(how);

About socklen_t, can you send me a part of your build log to see the error ? 
Mine doesn't give me one on that...
  
====================================
Frédéric BERNON 
HYMATOM SA 
Chef de projet informatique 
Microsoft Certified Professional 
Tél. : +33 (0)4-67-87-61-10 
Fax. : +33 (0)4-67-70-85-44 
Email : address@hidden 
Web Site : http://www.hymatom.fr 
====================================
P Avant d'imprimer, penser à l'environnement
 


-----Message d'origine-----
De : address@hidden [mailto:address@hidden De la part de Bill Florac
Envoyé : lundi 30 juillet 2007 06:04
À : address@hidden
Objet : [lwip-users] Compile warnings in socket.c


No big deal but when I compile sockets.c I get a handful (15) of "comparison 
between signed and unsigned" warnings. These are all when comparing a type 
"socklen_t" to a sizeof().  Since I think socklen_t is universally an int, I 
suppose these all should be cast to an int? (or just disable the warning...)
 
I also get a unused parameter "len" in event_callback()
 
Bill Florac


_______________________________________________
lwip-users mailing list
address@hidden http://lists.nongnu.org/mailman/listinfo/lwip-users

Attachment: Frédéric BERNON.vcf
Description: Frédéric BERNON.vcf


reply via email to

[Prev in Thread] Current Thread [Next in Thread]