Artifacts Associated With Ticket 219094
Ticket change [54c6716d31] (rid 94007) by nobody on 2000-10-26 01:10:37:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 5625 Bug Version: 8.4a1 SubmitDate: '2000-05-22' LastModified: '2000-05-22' Severity: MED Status: Released Submitter: techsupp ChangedBy: hobbs OS: Linux FixedDate: '2000-05-22' FixedInVersion: 8.4a1 ClosedDate: '2000-10-25' Name: mo CVS: Fri May 19 ObservedBehavior: Compiling this file produces lots of warnings. DesiredBehavior: I would like Tcl to compile cleanly. Patch: Index: ChangeLog =================================================================== RCS file: /cvsroot/tcl/ChangeLog,v retrieving revision 1.241 diff -u -r1.241 ChangeLog --- ChangeLog2000/05/18 22:29:551.241 +++ ChangeLog2000/05/20 00:54:49 @@ -1,3 +1,10 @@ +2000-05-19 Mo DeJong <[email protected]> + +* win/tclWinConsole.c: Cleaned up +lots of compiler warnings related to +implicit conversions and functions +that were never defined. + 2000-05-18 Eric Melski <[email protected]> * tests/clock.test: Added test for "2 days 2 hours ago" style Index: win/tclWinConsole.c =================================================================== RCS file: /cvsroot/tcl/win/tclWinConsole.c,v retrieving revision 1.3 diff -u -r1.3 tclWinConsole.c --- tclWinConsole.c1999/07/27 01:42:251.3 +++ tclWinConsole.c2000/05/20 00:54:49 @@ -135,14 +135,6 @@ * Declarations for functions used only in this file. */ -static intApplicationType(Tcl_Interp *interp, - const char *fileName, char *fullName); -static voidBuildCommandLine(const char *executable, int argc, - char **argv, Tcl_DString *linePtr); -static voidCopyChannel(HANDLE dst, HANDLE src); -static BOOLHasConsole(void); -static TclFileMakeFile(HANDLE handle); -static char *MakeTempFile(Tcl_DString *namePtr); static intConsoleBlockModeProc(ClientData instanceData, int mode); static voidConsoleCheckProc(ClientData clientData, int flags); static intConsoleCloseProc(ClientData instanceData, @@ -161,7 +153,6 @@ static voidConsoleWatchProc(ClientData instanceData, int mask); static DWORD WINAPIConsoleWriterThread(LPVOID arg); static voidProcExitHandler(ClientData clientData); -static intTempFileName(WCHAR name[MAX_PATH]); static intWaitForRead(ConsoleInfo *infoPtr, int blocking); /* @@ -632,11 +623,11 @@ */ if (bufSize < (infoPtr->bytesRead - infoPtr->offset)) { - memcpy(buf, &infoPtr->buffer[infoPtr->offset], bufSize); + memcpy(buf, &infoPtr->buffer[infoPtr->offset], (size_t) bufSize); bytesRead = bufSize; infoPtr->offset += bufSize; } else { - memcpy(buf, &infoPtr->buffer[infoPtr->offset], bufSize); + memcpy(buf, &infoPtr->buffer[infoPtr->offset], (size_t) bufSize); bytesRead = infoPtr->bytesRead - infoPtr->offset; /* @@ -730,9 +721,9 @@ ckfree(infoPtr->writeBuf); } infoPtr->writeBufLen = toWrite; - infoPtr->writeBuf = ckalloc(toWrite); + infoPtr->writeBuf = ckalloc((unsigned int) toWrite); } -memcpy(infoPtr->writeBuf, buf, toWrite); +memcpy(infoPtr->writeBuf, buf, (size_t) toWrite); infoPtr->toWrite = toWrite; ResetEvent(infoPtr->writable); SetEvent(infoPtr->startWriter); @@ -1082,7 +1073,7 @@ * that are not KEY_EVENTs */ if (ReadConsole(handle, infoPtr->buffer, CONSOLE_BUFFER_SIZE, -&infoPtr->bytesRead, NULL) != FALSE) { +(LPDWORD) &infoPtr->bytesRead, NULL) != FALSE) { /* * Data was stored in the buffer. */ PatchFiles: ChangeLog win/tclWinConsole.c Patched as noted for 8.4a1. -- 05/22/2000 hobbs
- foundin initialized to: "obsolete: 8.4a1"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "75. Tutorial"
- title initialized to: "Cleanup for win/tclWinConsole.c"
- type initialized to: "Bug"
Ticket change [59c62c69cd] (rid 118026) by welch on 2000-10-26 08:34:55:
- closedate changed to: "2000-10-26T01:34:55"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [75f1dabebf] (rid 105483) by dgp on 2001-04-05 06:52:46:
- closedate changed to: "2001-04-04T23:52:46"
- closer changed to: "dgp"
- subsystem changed to: "53. Configuration and Build Tools"