Compiler warnings building on x86_64
Closed / Fixed1516450fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2006-07-03 16:49:50
Building on a SUSE 10.1 against Tcl 8.5 (cvs) i get
compiler warnings for some code:
./generic/threadSvCmd.c: In function
‘SvAllocateContainers’:
./generic/threadSvCmd.c:881: warning: cast from pointer
to integer of different size
./generic/threadSvCmd.c:881: warning: cast from pointer
to integer of different size
dkf suggested this as a fix in the chat (and it
silences the warning):
static void
SvAllocateContainers(bucketPtr)
Bucket *bucketPtr;
{
Container tmp[2];
size_t objSizePlusPadding =
(size_t)(((char*)(tmp+1))-(char*)tmp);
/*
size_t objSizePlusPadding =
((int)(&(tmp[1]))-(int)(&(tmp[0])));
*/
...
vasiljevicplain2006-08-06 17:40:28
Logged In: YES user_id=95086 Updated in CVS. Thanks.
Log in (anonymous is fine) to add a comment.