Changeset 46 for trunk/src


Ignore:
Timestamp:
Jun 9, 2006, 10:38:20 PM (18 years ago)
Author:
rainer
Message:

Fix x86_64 build failure with gcc 4.x (as well as some gcc 4.x warnings)

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_files.c

    r40 r46  
    204204  char       * dir;
    205205  char       * file;
     206  int          tmp_reported;
    206207 
    207208  SL_ENTER(_("sh_files_chk"));
     
    233234
    234235          BREAKEXIT(sh_files_filecheck);
     236          tmp_reported = ptr->reported; /* fix aliasing warning */
    235237          status = sh_files_filecheck (ptr->class, dir, file,
    236                                        (int *) &(ptr->reported), 0);
     238                                       &tmp_reported, 0);
     239          ptr->reported = tmp_reported;
    237240         
    238241          TPT(( 0, FIL__, __LINE__,
  • trunk/src/sh_socket.c

    r40 r46  
    522522#elif defined(SO_PEERCRED)
    523523  struct ucred cr;
    524   int          cl = sizeof(cr);
     524#ifdef HAVE_SOCKLEN_T
     525  socklen_t cl = sizeof(cr);
     526#else
     527  int       cl = sizeof(cr);
     528#endif
    525529
    526530#elif defined(HAVE_STRUCT_CMSGCRED) || defined(HAVE_STRUCT_FCRED) || (defined(HAVE_STRUCT_SOCKCRED) && defined(LOCAL_CREDS))
  • trunk/src/sh_tiger0.c

    r34 r46  
    913913      sum += n;
    914914    }
    915     while (sum < (off_t) BLOCKSIZE
     915    while (sum < (size_t) BLOCKSIZE
    916916           && n != 0);
    917917
  • trunk/src/sh_tiger1_64.c

    r18 r46  
    129129#define roundend(a,b,c,x) \
    130130 : "+r" (a), "+r" (b), "+r" (c) \
    131  : "0" (a), "1" (b), "2" (c), "m" (x), "r" (&tiger_table),\
     131 : "r" (a), "r" (b), "r" (c), "m" (x), "r" (&tiger_table),\
    132132  "i" (MASK0), "i" (MASK8), "i" (MASK16), "r" (MASK32), "r" (MASK40), "r" (MASK48) \
    133133 : "3", "%rax","%rbx","%rcx","%rdx","%rsi", "%edi", "%r8"  );
Note: See TracChangeset for help on using the changeset viewer.