Re: htdig: compilation warnings & parse_word_doc.pl


Gilles Detillieux (grdetil@scrc.umanitoba.ca)
Wed, 16 Dec 1998 14:06:59 -0600 (CST)


According to J. op den Brouw:
> first some compilation warnings. Htdig works okay, though!
>
> c++ -c -DDEFAULT_CONFIG_FILE=\"/usr/local/htdig/conf/htdig.conf\"
> -I../htlib -I../htcommon -I../db/dist -I../rx/rx -I../include -g -O2
> Connection.cc
> Connection.cc: In method `Connection::Connection(int)':
> Connection.cc:98: warning: passing `unsigned int *' as argument 3 of
> `getpeername(int, sockaddr *, int *)' changes signedness
> Connection.cc: In method `int Connection::get_port()':
> Connection.cc:322: warning: passing `unsigned int *' as argument 3 of
> `getsockname(int, sockaddr *, int *)' changes signedness
> Connection.cc: In method `class Connection * Connection::accept(int =
> 0)':
> Connection.cc:348: warning: passing `unsigned int *' as argument 3 of
> `accept(int, sockaddr *, int *)' changes signedness
> Connection.cc:360: warning: passing `unsigned int *' as argument 3 of
> `getpeername(int, sockaddr *, int *)' changes signedness
> Connection.cc: In method `char * Connection::get_peername()':
> Connection.cc:481: warning: passing `unsigned int *' as argument 3 of
> `getpeername(int, sockaddr *, int *)' changes signedness
> Connection.cc: In method `char * Connection::get_peerip()':
> Connection.cc:505: warning: passing `unsigned int *' as argument 3 of
> `getpeername(int, sockaddr *, int *)' changes signedness

I get those too, on libc5 based Linux systems (e.g. Red Hat 4.2), but
not on glibc (libc6) based Linux systems, like Red Hat 5.0 & up. They're
harmless, really, because the length is always positive (or zero?), and
less than MAXINT, so it doesn't matter if you say it's an int or an
unsigned int. It's just annoying, that's all.

If the compiler gives an error rather than a warning, then it's a problem,
but in 3.1.0b3, configure tests for this and tries an alternate type.

-- 
Gilles R. Detillieux              E-mail: <grdetil@scrc.umanitoba.ca>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930
----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig-request@sdsu.edu containing the single word "unsubscribe" in
the body of the message.



This archive was generated by hypermail 2.0b3 on Sat Jan 02 1999 - 16:29:52 PST