Overview
| Artifact ID: | 7e78015dd6b194624d3964c5b87637006684f609 |
|---|---|
| Ticket: | 218662ffffffffffffffffffffffffffffffffff
Warning when compiling tclUnixSock.c |
| User & Date: | nobody on 2000-10-26 01:03:50 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 1634 Bug Version: 8.1b2 SubmitDate: '1999-03-25' LastModified: '1999-04-05' Severity: LOW Status: Released Submitter: pat ChangedBy: redman OS: Linux-Red Hat OSVersion: Redhat 4.2 Machine: Other FixedDate: '1999-04-05' FixedInVersion: 8.1b3 ClosedDate: '2000-10-25' Name: Jan Nijtmans ReproducibleScript: Compile Tcl8.1b2 on Linux with gcc 2.7.2.1 ObservedBehavior: warning message: "const" keyword ignored. (I didn't write down the exact error-message). The most logical solution is to make the variable "native" a CONST char*. That removes the warning. Patch: *** unix/tclUnixSock.c.origThu Mar 25 21:35:34 1999 --- unix/tclUnixSock.cThu Mar 25 21:36:58 1999 *************** *** 71,77 **** #else char buffer[sizeof(hostname)]; #endif ! char *native; Tcl_MutexLock(&hostMutex); if (hostnameInited) { --- 71,77 ---- #else char buffer[sizeof(hostname)]; #endif ! CONST char *native; Tcl_MutexLock(&hostMutex); if (hostnameInited) { PatchFiles: tclUnixSock.c 04/05/1999 18:03 - redman - Already done. - foundin changed to: "obsolete: 8.1b2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "10. Objects"
- title changed to: "Warning when compiling tclUnixSock.c"
- type changed to: "Bug"