Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 21bda92b9e45f9a823c488df4d64c6c7f42aa3e8
Ticket: 1889431fffffffffffffffffffffffffffffffff
quell compilation warnings
User & Date: brlcad on 2008-02-08 06:37:14
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Hello,
    
    I'm working on making our code (which uses Tcl extensively) compile cleanly with most GCC warnings enabled and some of the issues reported are coming from tcl/tk headers.
    
    The attached patch fixes the issues encountered from including tcl.h, which includes shadow warnings for 'index' declared on many functions and checking HAVE_DECLSPEC's value without it being set.  The patch just quells the shadow but changing the function signatures to not name the argument index (maybe call it idx) would also work.
    
    The warning flags being cleaned up are as follows:
    
    -W -Wall -Wundef -Wfloat-equal -Wshadow -Wunreachable-code -Winline -Wconversion
    
    Cheers!
    Sean
    
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "brlcad"
  10. subsystem changed to: "53. Configure and Build Tools"
  11. title changed to: "quell compilation warnings"
  12. type changed to: "Patch"