Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: db11971f8de63551ec2d3a9ff3335ec218ce6b2b
Ticket: 1516450fffffffffffffffffffffffffffffffff
Compiler warnings building on x86_64
User & Date: mic42 on 2006-07-03 16:49:50
Changes

  1. assignee changed to: "vasiljevic"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    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])));
        */
    
    ...
    
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "mic42"
  9. subsystem changed to: "80. Thread Package"
  10. title changed to: "Compiler warnings building on x86_64"
  11. type changed to: "Bug"