Artifacts Associated With Ticket aa6624c6292064e7
Ticket change [7c7fa40830] (rid 222278) by chrstphrchvz on 2024-02-16 12:12:45:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- 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. - foundin initialized to: "core-8-6-branch"
- is_private initialized to: "0"
- login: "chrstphrchvz"
- priority initialized to: "5 Medium"
- private_contact initialized to: "6133eb3026f9b10aa9b7b48da92ae2834fc225b0"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "chrstphrchvz"
- subsystem initialized to: "53. Configuration and Build Tools"
- title initialized to: "tclExecute.c: Avoid false-positive warning"
- type initialized to: "Patch"
Ticket change [d300e1dce4] (rid 222279) by chrstphrchvz on 2024-02-16 12:13:26:
- 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 [-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. - login: "chrstphrchvz"
- mimetype: "text/plain"
- comment changed to:
Add attachment "aa6624c62920.diff" [27e1f79956] (rid 222281) by chrstphrchvz on 2024-02-16 12:16:27.
Ticket change [812691b32f] (rid 222328) by jan.nijtmans on 2024-02-16 14:56:12:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2460357.12236416"
- closer changed to: "jan.nijtmans"
- icomment:
Fixed [87d01188e388c6c2|here] Thanks for the report and the patch!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"