Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Warning when compiling tclUnixSock.c

Closed / Fixed218662ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:03:50
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.
welch Closed ticket [218662ffff]. [History diff]2000-10-26 08:26:11
Log in (anonymous is fine) to add a comment.