Skip to content
Tcl Source Code History Of Ticket aa6624c6292064e7
Login

History Of Ticket aa6624c6292064e7

Artifacts Associated With Ticket aa6624c6292064e7

  1. Ticket change [7c7fa40830] (rid 222278) by chrstphrchvz on 2024-02-16 12:12:45:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      LLVM.org Clang 17 emits is a false positive <tt>-Wconstant-logical-operand</tt> warning when using <tt>-std=c2x</tt> (reported at [https://github.com/llvm/llvm-project/issues/64356]):
      
      <pre>
      tcl86/generic/tclExecute.c:9192:4: warning: use of logical '||' with constant operand [-Wconstant-logical-operand]
       9192 |                         || (sizeof(Tcl_WideInt) < 2*sizeof(long))) {
            |                         ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      tcl86/generic/tclExecute.c:9192:4: note: use '|' for a bitwise operation
       9192 |                         || (sizeof(Tcl_WideInt) < 2*sizeof(long))) {
            |                         ^~
            |                         |
      </pre>
      
      This will be fixed in future Clang, but I would suggest reordering affected expressions as a workaround to avoid anyone else complaining about this. See attached patch.
      
    5. foundin initialized to: "core-8-6-branch"
    6. is_private initialized to: "0"
    7. login: "chrstphrchvz"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "6133eb3026f9b10aa9b7b48da92ae2834fc225b0"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "chrstphrchvz"
    14. subsystem initialized to: "53. Configuration and Build Tools"
    15. title initialized to: "tclExecute.c: Avoid false-positive warning"
    16. type initialized to: "Patch"
  2. Ticket change [d300e1dce4] (rid 222279) by chrstphrchvz on 2024-02-16 12:13:26:

    1. comment changed to:
      LLVM.org Clang 17 emits is a false positive <tt>-Wconstant-logical-operand</tt> warning when using <tt>-std=c2x</tt> (reported at [https://github.com/llvm/llvm-project/issues/64356]):
      
      <pre>
      tcl86/generic/tclExecute.c:9192:4: warning: use of logical '||' with constant operand &#91;-Wconstant-logical-operand&#93;
       9192 |                         || (sizeof(Tcl_WideInt) &lt; 2*sizeof(long))) {
            |                         ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      tcl86/generic/tclExecute.c:9192:4: note: use '|' for a bitwise operation
       9192 |                         || (sizeof(Tcl_WideInt) &lt; 2*sizeof(long))) {
            |                         ^~
            |                         |
      </pre>
      
      This will be fixed in future Clang, but I would suggest reordering affected expressions as a workaround to avoid anyone else complaining about this. See attached patch.
      
    2. login: "chrstphrchvz"
    3. mimetype: "text/plain"
  3. Add attachment "aa6624c62920.diff" [27e1f79956] (rid 222281) by chrstphrchvz on 2024-02-16 12:16:27.

  4. Ticket change [812691b32f] (rid 222328) by jan.nijtmans on 2024-02-16 14:56:12:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2460357.12236416"
    3. closer changed to: "jan.nijtmans"
    4. icomment:
      Fixed [87d01188e388c6c2|here]
      
      Thanks for the report and the patch!
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"