Mailing List
Home
Forum Home
Mac Game - Mac game development
Rivers of MUD - a Diku and Merc based multiuser dungeon
SMAUG
Subjects
Getting UDP through NAT/firewalls/whatever for a game
Getting UDP through NAT/firewalls/whatever for a game
QuickTime errors
Python script as stand alone MUD server
Subject: Various sound problems
Fragment Shaders & GL TEXTURE RECTANGLE EXT
Subject: Timers and global variables
Re: Language and platform for Text MUD server
Apparent acquisition of Yantis (mysupersales) by IDE
HID keyboard
Getting UDP through NAT/firewalls/whatever for a game
Microsoft Sparkle
Subject: Director MX
Congratulations Horizons
Yet more problems fullscreen mode
Apple Dev Kitchen Them 's tasty vittles, Maw!
NSOpenGLContext, Pbuffers, and drawables
More DCR "theft " naughtiness
dynamic sprite creation and imaging lingo
Re: Find stuff in Flash array?
Effects of skill imbalances?
QuickTime errors
Rom 2 4/Quickmud Enhancement/Bug fix
Subject: Working with XML files/CFURL
smooth scrolling/subpixel tweening
RE: (Ron help me?) Flash text
Subject: Flash Racing
Subject: MudDev FAQ 2
Browser based games
Installing GLUT
Special character in Flash XML
 
Subject: signedness warnings

Subject: signedness warnings

2005-05-10       - By PoE

 Back
Reply:     1     2     3  

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>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>-Wimplicit-int -Wimplicit-function-declaration
-Wimplicit -Wmain -Wreturn-type -Wswitch -Wcomment -Wtrigraphs
-Wformat&nbsp;-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&nbsp;it looks&nbsp;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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Nicole</DIV></FONT></BODY></HTML>