Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8c768190b5c1f63bf73fc670ebfbfcdec297d5222ff99254583dc7c3fd1200e7
Ticket: c9759399735f1979a2e7931fd9f00da20f2fbb7e
Usage of gnu_printf in latest mingw-w64
User & Date: jan.nijtmans on 2020-10-21 07:43:56
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    When compiling Tcl with latest mingw-w64, warnings like this arise:
    <pre>
    tclWinSerial.c:1459:26: warning: 'I' flag used with ‘%x’ gnu_printf format [-Wformat=]
     1459 |     sprintf(channelName, "file%" TCL_I_MODIFIER "x", (size_t) infoPtr);
          |                          ^~~~~~~
    </pre>
    
    So we need to handle either using gnu printf with standard modifiers, either MSVC printf with microsoft's modifiers.
    
  5. is_private changed to: "0"
  6. login: "jan.nijtmans"
  7. priority changed to: "5 Medium"
  8. resolution changed to: "None"
  9. severity changed to: "Minor"
  10. status changed to: "Open"
  11. submitter changed to: "jan.nijtmans"
  12. subsystem changed to: "52. Portability Support"
  13. title changed to: "Usage of gnu_printf in latest mingw-w64"
  14. type changed to: "Bug"