Changeset 3240 for trunk/src


Ignore:
Timestamp:
Dec 25, 2018, 9:47:49 PM (7 years ago)
Author:
bird
Message:

kash: GCC warnings.

Location:
trunk/src/kash
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/miscbltin.c

    r2648 r3240  
    388388                        while ((c = *p++) >= '0' && c <= '9')
    389389                        {
     390                                shrlim_t const prev = val;
    390391                                val = (val * 10) + (long)(c - '0');
    391                                 if (val < (shrlim_t) 0)
     392                                if (val < prev)
    392393                                        break;
    393394                        }
  • trunk/src/kash/shfile.c

    r2681 r3240  
    583583 * @param   pszPath             The path to fix.
    584584 */
    585 static void shfile_fix_slashes(char *pszPath)
     585K_INLINE void shfile_fix_slashes(char *pszPath)
    586586{
    587587#if K_OS == K_OS_WINDOWS || K_OS == K_OS_OS2
     
    14631463        TRACE2((NULL, "shfile_write(%d) - %lu bytes (%d) - pos %lu - before; %o\n",
    14641464                fd, (long)s.st_size, x, (long)lseek(fd, 0, SEEK_CUR), s.st_mode ));
     1465        K_NOREF(x);
    14651466        errno = iSavedErrno;
    14661467    }
  • trunk/src/kash/shinstance.h

    r2657 r3240  
    358358/* signals */
    359359#define SH_SIG_UNK ((shsig_t)(intptr_t)-199)
    360 #define SH_SIG_DFL ((shsig_t)SIG_DFL)
    361 #define SH_SIG_IGN ((shsig_t)SIG_IGN)
    362 #define SH_SIG_ERR ((shsig_t)SIG_ERR)
     360#define SH_SIG_DFL ((shsig_t)(intptr_t)SIG_DFL)
     361#define SH_SIG_IGN ((shsig_t)(intptr_t)SIG_IGN)
     362#define SH_SIG_ERR ((shsig_t)(intptr_t)SIG_ERR)
    363363#ifdef _MSC_VER
    364364#   define SA_RESTART       0x02
Note: See TracChangeset for help on using the changeset viewer.