Skip to content
Tcl Source Code History Of Ticket 1889431
Login

History Of Ticket 1889431

Artifacts Associated With Ticket 1889431

  1. Ticket change [21bda92b9e] (rid 130636) by brlcad on 2008-02-08 06:37:14:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "brlcad"
    10. subsystem initialized to: "53. Configure and Build Tools"
    11. title initialized to: "quell compilation warnings"
    12. type initialized to: "Patch"
  2. Add attachment "quell.patch" [dfc9d29250] (rid 115072) by brlcad on 2008-02-08 13:37:15.

  3. Ticket change [eb2a842e22] (rid 103488) by brlcad on 2008-02-08 13:37:16:

    1. icomment:
      
      
      File Added - 265511: quell.patch
      
      
      
    2. login: "brlcad"
    3. mimetype: "text/plain"
    4. username: "brlcad"
  4. Ticket change [a78a79ff6c] (rid 98819) by dkf on 2008-02-08 18:52:01:

    1. icomment:
      Logged In: YES 
      user_id=79902
      Originator: NO
      
      Don't use -Wshadow
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  5. Ticket change [0e02c4f8d7] (rid 94534) by dkf on 2008-02-08 18:52:31:

    1. assignee changed to: "hobbs"
    2. priority changed to: "4"
  6. Ticket change [5128d458e1] (rid 126091) by brlcad on 2008-02-22 04:34:08:

    1. icomment:
      Logged In: YES 
      user_id=785737
      Originator: YES
      
      It was never a question of what causes the warnings.  I merely provided our list to show which ones we tested and worked on cleaning.  The -Wshadow flag is desirable for other reasons hence the provided (trivial) patch that quells them.
      
      
    2. login: "brlcad"
    3. mimetype: "text/plain"
    4. username: "brlcad"
  7. Ticket change [862ee003f4] (rid 148468) by dkf on 2016-08-23 14:01:30:

    1. assignee changed to: "aku"
    2. closer changed to: "nobody"
    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. login: "dkf"
    5. mimetype: "text/plain"
    6. severity changed to: "Minor"
    7. subsystem changed to: "53. Configuration and Build Tools"
  8. Ticket change [1af0b9821b] (rid 239198) by jan.nijtmans on 2025-04-16 08:12:10:

    1. closedate changed to: "2460781.84179109"
    2. closer changed to: "jan.nijtmans"
    3. icomment:
      All of the warnings mentioned here, no longer occur. Closing.
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Out of Date"
    7. status changed to: "Closed"