Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: af4fd6d80e44056841307983ad413bc106f71ef2
Ticket: 2555129fffffffffffffffffffffffffffffffff
const compiler warning (as error) in tclCompile.c
User & Date: mistachkin on 2009-02-01 08:39:07
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    The threaded debug build on Windows XP does not compile (using MSVC9):
    
    tcl\win\..\generic\tclCompile.c(3377) : error C2220: warning treated as error - no 'object' file generated
    tcl\win\..\generic\tclCompile.c(3377) : warning C4090: 'function' : different 'const' qualifiers
    
    The code in question:
    
    int
    TclPrintInstruction(
        ByteCode *codePtr,       /* Bytecode containing the instruction. */
        const unsigned char *pc) /* Points to first byte of instruction. */
    {
      <snip>
      numBytes = FormatInstruction(codePtr, pc, bufferObj); /* <-- const mismatch for pc argument */
      <snip>
    }
    
    
  4. foundin changed to: "obsolete: 8.6b1.1"
  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: "mistachkin"
  10. subsystem changed to: "47. Bytecode Compiler"
  11. title changed to: "const compiler warning (as error) in tclCompile.c"
  12. type changed to: "Bug"