diff options
author | dgp <dgp@users.sourceforge.net> | 2022-10-17 19:35:07 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2022-10-17 19:35:07 (GMT) |
commit | de5ba4f4af937590dcb3152f3a2fc5e410411299 (patch) | |
tree | f9793c6c0311005aa8a405c1249207d07f83f903 /generic | |
parent | acef240cfaf71c43ceb78c45bf3a6d52147659c5 (diff) | |
parent | f77cb9fd0c936cad6f224fc2da64cb7ae5cf8446 (diff) | |
download | tk-de5ba4f4af937590dcb3152f3a2fc5e410411299.zip tk-de5ba4f4af937590dcb3152f3a2fc5e410411299.tar.gz tk-de5ba4f4af937590dcb3152f3a2fc5e410411299.tar.bz2 |
merge 8.6
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkBind.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/generic/tkBind.c b/generic/tkBind.c index 0251df5..1be3677 100644 --- a/generic/tkBind.c +++ b/generic/tkBind.c @@ -3979,7 +3979,12 @@ HandleEventGenerate( for (i = 2; i < (unsigned) objc; i += 2) { Tcl_Obj *optionPtr, *valuePtr; +#if defined(_MSC_VER) + /* Work around MSVC compiler optimization bug, see [d93c8175fd]. */ + volatile int badOpt = 0; +#else int badOpt = 0; +#endif int index; optionPtr = objv[i]; |