diff options
author | das <das> | 2006-12-02 01:23:00 (GMT) |
---|---|---|
committer | das <das> | 2006-12-02 01:23:00 (GMT) |
commit | ee623a6b64ff51fd3910c18810f6050e69a6ada1 (patch) | |
tree | 92a84f35e040b7a92deed5491b1fdeb704941633 | |
parent | cf036d0597cf4cd2dd01dd6b80e4ffb45ee2ca2a (diff) | |
download | tcl-ee623a6b64ff51fd3910c18810f6050e69a6ada1.zip tcl-ee623a6b64ff51fd3910c18810f6050e69a6ada1.tar.gz tcl-ee623a6b64ff51fd3910c18810f6050e69a6ada1.tar.bz2 |
fix warning
-rw-r--r-- | generic/tclIOCmd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/generic/tclIOCmd.c b/generic/tclIOCmd.c index c2c1bb8..e50c2c6 100644 --- a/generic/tclIOCmd.c +++ b/generic/tclIOCmd.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclIOCmd.c,v 1.35 2006/12/01 15:55:44 dgp Exp $ + * RCS: @(#) $Id: tclIOCmd.c,v 1.36 2006/12/02 01:23:00 das Exp $ */ #include "tclInt.h" @@ -1675,15 +1675,16 @@ TclChanPendingObjCmd( } else { Tcl_SetObjResult(interp, Tcl_NewIntObj(Tcl_InputBuffered(chan))); } - return TCL_OK; + break; case PENDING_OUTPUT: if ((mode & TCL_WRITABLE) == 0) { Tcl_SetObjResult(interp, Tcl_NewIntObj(-1)); } else { Tcl_SetObjResult(interp, Tcl_NewIntObj(Tcl_OutputBuffered(chan))); } - return TCL_OK; + break; } + return TCL_OK; } /* |