Artifact
7c7fa408300011289b943f3dec1e3fa3d0b743deaf929cb21d9bdf814ce71db9:
Ticket change
[7c7fa40830]
- New ticket
[aa6624c6292064e7|aa6624c629] <i>tclExecute.c: Avoid false-positive warning</i>.
by
chrstphrchvz on
2024-02-16 12:12:45.
D 2024-02-16T12:12:45.943
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment LLVM.org\sClang\s17\semits\sis\sa\sfalse\spositive\s<tt>-Wconstant-logical-operand</tt>\swarning\swhen\susing\s<tt>-std=c2x</tt>\s(reported\sat\s[https://github.com/llvm/llvm-project/issues/64356]):\r\n\r\n<pre>\r\ntcl86/generic/tclExecute.c:9192:4:\swarning:\suse\sof\slogical\s'||'\swith\sconstant\soperand\s[-Wconstant-logical-operand]\r\n\s9192\s|\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s||\s(sizeof(Tcl_WideInt)\s<\s2*sizeof(long)))\s{\r\n\s\s\s\s\s\s|\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s^\s\s~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\ntcl86/generic/tclExecute.c:9192:4:\snote:\suse\s'|'\sfor\sa\sbitwise\soperation\r\n\s9192\s|\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s||\s(sizeof(Tcl_WideInt)\s<\s2*sizeof(long)))\s{\r\n\s\s\s\s\s\s|\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s^~\r\n\s\s\s\s\s\s|\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s|\r\n</pre>\r\n\r\nThis\swill\sbe\sfixed\sin\sfuture\sClang,\sbut\sI\swould\ssuggest\sreordering\saffected\sexpressions\sas\sa\sworkaround\sto\savoid\sanyone\selse\scomplaining\sabout\sthis.\sSee\sattached\spatch.
J foundin core-8-6-branch
J is_private 0
J login chrstphrchvz
J priority 5\sMedium
J private_contact 6133eb3026f9b10aa9b7b48da92ae2834fc225b0
J resolution None
J severity Minor
J status Open
J submitter chrstphrchvz
J subsystem 53.\sConfiguration\sand\sBuild\sTools
J title tclExecute.c:\sAvoid\sfalse-positive\swarning
J type Patch
K aa6624c6292064e76efe93bfb810545a82ad1d3d
U chrstphrchvz
Z 9e7b61cca2ed7165e14e6a9d9b054158