Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2003:
[Freeciv-Dev] solaris warning
Home

[Freeciv-Dev] solaris warning

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] solaris warning
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Thu, 29 May 2003 17:56:46 +0000 (GMT)

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl    -g -O2 -Werror -Wall
-Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations
-c `test -f 'netintf.c' || echo './'`netintf.c
cc1: warnings being treated as errors
netintf.c: In function `net_lookup_service':
netintf.c:175: warning: cast increases required alignment of target type

Lines in question:

        struct sockaddr_in *sock = NULL;
...
        sock = (struct sockaddr_in *) sa;

Any ideas?

  - Per



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