Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 15b917781d581f9c9bd7e847b1e1cd5029365ab4d32bfef434c8a31af2b4bfea
Ticket: 03cff7a777da6cdf7caace9f0a7d181c685ad799
-Wconversion warnings, like TclAdvanceContinuations()
User & Date: jan.nijtmans on 2025-04-16 08:48:15
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    In the past, Tcl/Tk was compiled with -Wconversion warnings turned on. When the move was made to more 64-bit handling, this warning was removed from the CFLAGS, simply because it produced too much unuseful warnings.
    
    As an example TclAdvanceContinuations() is normally called like this (see tclParse.c):
    <pre>
    		TclAdvanceContinuations(&line, &clNextOuter,
    			tokenPtr->start - outerScript);
    </pre>
    
    Since the last argument is "int loc", a substraction of two pointer (ptrdiff_t) doesn't fit. This might be related to ticket [27b3ce2997].
    
    There are more situations like this, let's see what we can do. The goal is _not_   to fix all -Wconversion warnings.
    
  5. foundin changed to: "9.1"
  6. is_private changed to: "0"
  7. login: "jan.nijtmans"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "0c50e5320704d174412e57b873d8932de15303e0"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "jan.nijtmans"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to:
    -Wconversion warnings, like TclAdvanceContinuations()
    
  16. type changed to: "Bug"