Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5fde80409a3322e5b3977d6aedf9d0d64830a3c5ab8cc7c2dab30f301739c70e
Ticket: c29b92ec2bbb83dd1e7ddb116b09ba0f678d624a
Tcl_IncrRefCount() macro evaluates to non-void expression
User & Date: chrstphrchvz on 2023-07-29 00:25:07
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    The <tt>Tcl_IncrRefCount()</tt> macro definition in tcl.h evaluates to the new reference count. For correctness and consistency with the <tt>Tcl_IncrRefCount()</tt> function declaration, this should not be permitted. I suggest wrapping the macro’s expression with e.g. <tt>((void)(…))</tt>, or <tt>do {…;} while(0)</tt>.
    
  5. foundin changed to: "8.6.13"
  6. is_private changed to: "0"
  7. login: "chrstphrchvz"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "6133eb3026f9b10aa9b7b48da92ae2834fc225b0"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "chrstphrchvz"
  14. subsystem changed to: "10. Objects"
  15. title changed to:
    Tcl_IncrRefCount() macro evaluates to non-void expression
    
  16. type changed to: "Bug"