|
2009-05-04
| ||
| 01:12 | • Closed ticket [771944ffff]: tclIOSock.c: compiler warning plus 7 other chang... artifact: 5c7aa0587d user: dkf | |
|
2004-07-17
| ||
| 02:40 | • Ticket [771944ffff]: 5 changes artifact: 60c5dc6e46 user: andreas_kupries | |
|
2004-05-14
| ||
| 08:36 | • Ticket [771944ffff]: 4 changes artifact: 1521a89ae5 user: davygrvy | |
|
2003-10-22
| ||
| 15:59 | • Ticket [771944ffff]: 4 changes artifact: 63936ec80d user: dkf | |
| 07:01 | • Ticket [771944ffff]: 4 changes artifact: 3cfddd96b8 user: andreas_kupries | |
|
2003-08-09
| ||
| 01:48 | • Ticket [771944ffff]: 1 change artifact: 5da2182314 user: andreas_kupries | |
|
2003-07-16
| ||
| 06:11 | • Ticket [771944ffff]: 4 changes artifact: ab025cd58c user: dgp | |
|
2003-07-15
| ||
| 23:05 | • New ticket [771944ffff]. artifact: abdabb8c0f user: dgp | |
tclIOSock.c: compiler warning
Closed / Wont Fix771944ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 18 years ago
Descriptionplain2003-07-15 23:05:10
SGI compiler warns:
"./../generic/tclIOSock.c", line 97: warning(1164):
argument of type
"unsigned int *" is incompatible with
parameter of type "int *"
getsockopt(sock, SOL_SOCKET, SO_SNDBUF, (char
*)¤t, &len);
^
"./../generic/tclIOSock.c", line 103: warning(1164):
argument of type
"unsigned int *" is incompatible with
parameter of type "int *"
getsockopt(sock, SOL_SOCKET, SO_RCVBUF, (char
*)¤t, &len);
^
dgpplain2003-07-16 06:11:30
Logged In: YES user_id=80530 similar warnings for unix/tclUnixChan.c
andreas_kupries Ticket [771944ffff]: 1 change
[History diff]2003-08-09 01:48:18
andreas_kupriesplain2003-10-22 07:01:18
Logged In: YES
user_id=75003
Don, do you have a patch ? I guess the (char*) casts should
be (VOID*) instead. Linux signature is
int getsockopt(int s, int level, int optname,
void *optval, socklen_t *optlen);
No idea about the SGI signature.
dkfplain2003-10-22 15:59:45
Logged In: YES user_id=79902 IRIX has the following declarations (depending on which #defs are defined; I don't know which it is) in /usr/include/sys/socket.h extern int getsockopt(int, int, int, void *, socklen_t *); extern int getsockopt(int, int, int, void *, size_t *); extern int getsockopt(int, int, int, void *, int *); Hope this helps, but I suspect it doesn't...
davygrvyplain2004-05-14 08:36:34
Logged In: YES user_id=7549 IMO, TclSockMinimumBuffers shouldn't be in the generic layer. It's wrought in type casting for no good reason. The void* trick could probably work for forcing typeless, but isn't this really saying something more about how this should get moved to the socket channel driver implementation instead? No where does the generic layer call this function. Only channel drivers themselves call it. And when it does, the win32 code won't have to cast from SOCKET to int and the socklen_t thing is strange for win32. unix\tclUnixChan.c(2514): TclSockMinimumBuffers(sock, SOCKET_BUFSIZE); win\tclWinSock.c(1134): TclSockMinimumBuffers((int) sock, TCP_BUFFER_SIZE); win\tclWinSock.c(1495): TclSockMinimumBuffers((int) sock, TCP_BUFFER_SIZE);
andreas_kupriesplain2004-07-17 02:40:33
Logged In: YES user_id=75003 I am not sure about this. This is obviously an abstraction, a (relatively) generic command for all sockets. It could be made into a Tclp function, i.e. generic declaration, platform specific definition. This however will not help us with the warnings we encounter here, as they are differences between different Unices, i.e. variants of the same platform. I see no real solution right now.
dkfplain2009-05-04 01:12:12
allow_comments - 1 Problem seems to be due to inconsistent definitions of getsockopt between different OSes. That's at the point where we just give up! (It's only a signed/unsigned warning after all...)
Log in (anonymous is fine) to add a comment.