|
2005-10-06
| ||
| 00:45 | • Closed ticket [1286256fff]: compiler warnings plus 7 other changes artifact: 7f1fa5e52f user: andreas_kupries | |
|
2005-09-10
| ||
| 02:12 | • Ticket [1286256fff]: 4 changes artifact: c9a0bd0386 user: andreas_kupries | |
|
2005-09-09
| ||
| 18:58 | • New ticket [1286256fff]. artifact: 47aa44b61c user: dgp | |
compiler warnings
Closed / Fixed1286256fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2005-09-09 18:58:21
"../unix/../generic/tclIORChan.c", line 1052: warning: statement not reached "../unix/../generic/tclIORChan.c", line 1841: warning: no explicit type given for parameter: mask
andreas_kupriesplain2005-09-10 02:12:11
Logged In: YES
user_id=75003
Ok, I fixed the second warning.
The first warning is for
--------------------
return (res == TCL_OK) ? EOK : EINVAL;
}
Tcl_Panic ("Should not be reached");
return EINVAL;
}
--------------------
I.e. the panic cannot be reached under normal circumstances.
I believe to remember that some compilers throw a warning if
there is no code in this path, i.e. they are not able to
detect that all paths returned before coming to this place.
I may be wrong.
Do we have a policy for this situation ?
andreas_kupriesplain2005-10-06 00:45:32
Logged In: YES user_id=75003 Removed unreachable statements.
Log in (anonymous is fine) to add a comment.