Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b0291bee98f6b26c662f18171d1a65cc9b641059cb293e251cda2a0cd1b6ce8d
Ticket: bf58b04202ac37e5e92fa1a338f9e213c763e5b7
compiler warning in tclEnv.c
User & Date: chrstphrchvz on 2020-09-19 07:56:29
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    There is a warning when tclEnv.c is compiled with <tt>-DPURIFY</tt> (at least with Xcode 12):
    
    <pre>
    tcl/generic/tclEnv.c:776:16: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
            for (i = 0; i < env.cacheSize; i++) {
                        ~ ^ ~~~~~~~~~~~~~
    1 warning generated.
    </pre>
    
    This is because <tt>i</tt> is declared as <tt>int</tt> whereas <tt>env.cacheSize</tt> is now <tt>size_t</tt> in Tcl 9; presumably <tt>i</tt> should also now be declared as </tt>size_t</tt>.
    
  5. foundin changed to: "trunk"
  6. is_private changed to: "0"
  7. login: "chrstphrchvz"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Cosmetic"
  11. status changed to: "Open"
  12. submitter changed to: "chrstphrchvz"
  13. subsystem changed to: "08. Environment Variables"
  14. title changed to: "compiler warning in tclEnv.c"
  15. type changed to: "Bug"