Skip to content
Tcl Source Code Artifact [d300e1dce4]
Login

Artifact [d300e1dce4]

Artifact d300e1dce470e1e06da9070f7b9aeffda1a041b84494ae08cdf3fcc70ec5dbd1:

Ticket change [d300e1dce4] - Ticket [aa6624c6292064e7|aa6624c629] <i>tclExecute.c: Avoid false-positive warning</i> status still Open with 3 other changes by chrstphrchvz on 2024-02-16 12:13:26.
D 2024-02-16T12:13:26.673
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&#91;-Wconstant-logical-operand&#93;\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&lt;\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&lt;\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 login chrstphrchvz
J mimetype text/plain
K aa6624c6292064e76efe93bfb810545a82ad1d3d
U chrstphrchvz
Z 8fa5217ba8e95301cd28107eec30931e