Skip to content
Tcl Source Code View Ticket
Login

View Ticket

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.