  | | | Subject: signedness warnings | Subject: signedness warnings 2005-05-10 - By PoE
Back Hello, I recently upgraded to GCC 4.0 and now I am getting these warnings.
ident.c: In function 'set_auth': ident.c:288: warning: pointer targets in passing argument 3 of 'getsockname' differ in signedness ident.c:293: warning: pointer targets in passing argument 3 of 'getpeername' differ in signedness
webserv.c: In function 'handle_web': webserv.c:145: warning: pointer targets in passing argument 3 of 'accept' differ in signedness
My Makefile has the following warning options set.
-Wimplicit-int -Wimplicit-function-declaration -Wimplicit -Wmain -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wunused -Wchar-subscripts -Wuninitialized
I looked at the code for the warnings in ident.c and it looks the same code as the latest SmaugFUSS 1.6 releases ident.c code. Any idea how to fix these warnings?
Nicole <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1"> <META content="MSHTML 6.00.2900.2627" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>Hello, I recently upgraded to GCC 4.0 and now I am getting these warnings.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>ident.c: In function 'set_auth':<BR>ident.c:288: warning: pointer targets in passing argument 3 of 'getsockname' differ in signedness<BR>ident.c:293: warning: pointer targets in passing argument 3 of 'getpeername' differ in signedness</FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2>webserv.c: In function 'handle_web':<BR>webserv.c:145: warning: pointer targets in passing argument 3 of 'accept' differ in signedness<BR></FONT></DIV> <DIV><FONT face=Arial size=2>My Makefile has the following warning options set.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>-Wimplicit-int -Wimplicit-function-declaration -Wimplicit -Wmain -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wunused -Wchar-subscripts -Wuninitialized<BR></FONT><FONT face=Arial size=2></FONT></DIV> <DIV><FONT face=Arial size=2>I looked at the code for the warnings in ident.c and it looks the same code as the latest SmaugFUSS 1.6 releases ident.c code. Any idea how to fix these warnings?</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Nicole</DIV></FONT></BODY></HTML>
|
|
 |