Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2021-05-20
12:22 • Closed ticket [52cc90776c]: Warning when compile with gcc v9.3.0 plus 8 othe... artifact: 44470c6f9a user: jan.nijtmans
12:21
Fix [52cc90776c]: Warning when compile with gcc v9.3.0 check-in: 1da9feb7b1 user: jan.nijtmans tags: core-8-6-branch
2021-05-05
05:59 • New ticket [52cc90776c] Warning when compile with gcc v9.3.0. artifact: 97232a7167 user: arvind29

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
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.