main makefile.vc OPTS=static compile error in libtommath\bn_mp_set_i64.c: An unary minus operator was assigned to a signless type. The result is still signless.
C:\test\tcl9.0_tip607-encoding-failindex\win\..\libtommath\bn_mp_set_i64.c(6): warning C4146: Einem vorzeichenlosen Typ wurde ein unärer Minus-Operator zugewiesen. Das Ergebnis ist weiterhin vorzeichenlos.
English translation of the German error message:
An unary minus operator was assigned to a signless type. The result is still signless.
This happened with:
- Windows 10 64bit GER operating system
- Visual Studio 2015 command prompt: x86 native tools
- Command: cd win; nmake -f Makefile.vc release OPTS=noembed,symbols,static
- Branch: [a9b94c0646], which should be identical to current main in this respect.
The addition of the static option caused this compilation issue. Without static, it does not arise.
Thank you and take care, Harald
---
P.S.: I tried the static option, as VisualStudio debugging did not work without this patch: [add9ed8887]. I already informed Ashok, if this is ok or I am just doing nonsense.
47d5aef864Fix [639208cc7b]: main makefile.vc OPTS=static compile error in libtommath\bn_mp_set_i64.c: An unary minus operator was assigned to a signless type. The result is still signless. check-in2022-03-15 17:12:31
This C4146 warning is a false positive, there's nothing wrong. In Tcl code this warning is disabled, but not in the libtommath code.
I'll see what I can do.
Thanks!
Fixed [here] (even for 8.6, although bn_mp_set_i64.c is not used in 8.6). Thanks!
Thank you, Jan.
Tested -> all ok.
Thanks again, Harald