Re: Compile Warnings.

"Michael Barton" <[email protected]> Wed, 22 Nov 2006 16:22:43 -0600
Newsgroups gmane.games.devel.mud.rom
Message-ID <[email protected]>
The difference is probably that your new host is running a 64-bit kernel.

Make sure size is defined as a socklen_t.  That's the convention on
Linux and BSD.

Unixes that don't have a TCP stack based on BSD's differ on the type
of pointer that goes there, and unsigned int was the most portable
thing to do before 64-bit machines came around.

As for the weird quote characters, I have no idea.  It looks like
UTF-8 flattened to ASCII (on account of the multiple bytes in the
extended-ascii range for each character).  What apps are you copying
them from and to?




On 11/22/06, Valnir <[email protected]> wrote:
> Hey guys. Everyone was complaining about not having any traffic on this
> list, so here's something to get you thinking over the long weekend.
>
> I am running my mud on WolfPaw and everything compiles perfect. No errors=
,
> no warnings. All good. I am thinking about moving where my mud is hosted
> though. The new server is running Fedora Core 5 with GCC 4.1.1 and I get =
an
> interesting compliation warning:
>
> gcc -c -Wall -g3  comm.c
> comm.c: In function =E2=80=98init_descriptor=E2=80=99:
> comm.c:986: warning: pointer targets in passing argument 3 of
> =E2=80=98getsockname=E2=80=99 differ in signedness
> comm.c:987: warning: pointer targets in passing argument 3 of =E2=80=98ac=
cept=E2=80=99
> differ in signedness
> comm.c:1010: warning: pointer targets in passing argument 3 of
> =E2=80=98getpeername=E2=80=99 differ in signedness
>
> It's a clean make, so I know it's getting all the Fedora header files wit=
h
> nothing left over from the WolfPaw build. I went ahead and tried to run i=
t
> to see what it would do, but as I expected (since the warning is in the
> descriptor stuff) it crashed as soon as I tried to log in.
>
> Also, just on a side note. Any idea how to get the =E2=80=98accept=E2=80=
=99 to show up
> as `accept' instead?
>
> Thanks!
>
> - Valnir
>
> --
> ROM mailing list
> [email protected]
> Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom
>
-- 
ROM mailing list
[email protected]
Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom