Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7e78015dd6b194624d3964c5b87637006684f609
Ticket: 218662ffffffffffffffffffffffffffffffffff
Warning when compiling tclUnixSock.c
User & Date: nobody on 2000-10-26 01:03:50
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
  4. foundin changed to: "obsolete: 8.1b2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "10. Objects"
  10. title changed to: "Warning when compiling tclUnixSock.c"
  11. type changed to: "Bug"