Warning when compile with gcc v9.3.0
Closed / Fixed52cc90776cbeb7c01fc4b1615f2d8e7bab0e3c04Created 6 years agoUpdated 6 years ago
Descriptionplain2021-05-05 05:59:46
Hi,
I am getting below warning with gcc 9.3.0. Is there any Makefile option to ignore this warning ?
tcl/generic/tclExecute.c: In function 'ExecuteExtendedUnaryMathOp':
tcl/generic/tclExecute.c:13005:36: warning: 'ptr' may be used uninitialized in this function [-Wmaybe-uninitialized]
13005 | w = (Tcl_WideInt) (* ( (const long *) ptr));
| ~~^~~~~~~~~~~~~~~~~~~
tcl/generic/tclExecute.c:13005:36: warning: 'ptr' may be used uninitialized in this function [-Wmaybe-uninitialized]
tcl/generic/tclExecute.c: In function 'TEBCresume':
tcl/generic/tclExecute.c:9016:37: warning: 'l1' may be used uninitialized in this function [-Wmaybe-uninitialized]
9016 | lResult *= l1;
Referenced by1
1da9feb7b1Fix [52cc90776c]: Warning when compile with gcc v9.3.0 check-in2021-05-20 12:21:33
jan.nijtmanswiki2021-05-20 12:22:15
It's a harmless warning, but - anyway - it should be solved now in the 8.6 branch. Other branches will follow soon.
Log in (anonymous is fine) to add a comment.