Tcl Source Code

View Ticket
Login
Ticket UUID: 2555129
Title: const compiler warning (as error) in tclCompile.c
Type: Bug Created on: 2009-02-01 08:39:07
Submitter: mistachkin Assigned to: nijtmans
Subsystem: 47. Bytecode Compiler Severity:
Priority: 5 Medium Last modified: 2009-02-10 16:16:12
Status: Closed Closed by: nijtmans
Resolution: Fixed Closed on: 2009-02-10 09:15:55
Version: obsolete: 8.6b1.1
Description:
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>
}
User Comments:
nijtmans added on 2009-02-09 23:38:22:
will be fixed

nijtmans added on 2009-02-10 16:15:46:
fixed 2009-2-9

nijtmans added on 2009-02-10 16:15:55:

allow_comments - 1

nijtmans added on 2009-02-10 16:16:12:
fixed 2009-2-9