Ignore:
Timestamp:
Oct 29, 2008, 11:14:48 PM (17 years ago)
Author:
bird
Message:

kmk: pedantic warnings.

Location:
trunk/src/kmk/kmkbuiltin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/err.c

    r785 r2001  
    7575void warnx(const char *fmt, ...)
    7676{
    77     int err = errno;
    7877    va_list args;
    7978    fprintf(stderr, "%s: ", g_progname);
  • trunk/src/kmk/kmkbuiltin/kbuild_protection.c

    r1635 r2001  
    3737# include <limits.h>
    3838# include <direct.h>
    39 #endif
     39#else
     40# include <unistd.h>
     41#endif
    4042#include "kbuild_protection.h"
     43#include "err.h"
    4144
    4245
     
    185188        }
    186189    }
    187 #else
     190#else  /* !WIN && !OS2 */
    188191    if (!IS_SLASH(pszPath[0]))
    189192    {
     
    199202        cComponents = countSubPathComponents(szCwd, 0);
    200203    }
    201 #endif
     204#endif /* !WIN && !OS2 */
    202205
    203206    /*
     
    352355        if (cComponents < 0)
    353356            return -1;
    354         if (cComponents <= pThis->cProtectionDepth)
     357        if ((unsigned int)cComponents <= pThis->cProtectionDepth)
    355358        {
    356359            errx(1, "%s: protected", pszPath);
  • trunk/src/kmk/kmkbuiltin/kbuild_protection.h

    r1598 r2001  
    4646typedef struct KBUILDPROTECTION
    4747{
    48     unsigned        uMagic;
    49     unsigned        cProtectionDepth;
     48    unsigned int    uMagic;
     49    unsigned int    cProtectionDepth;
    5050    unsigned char   afTypes[KBUILDPROTECTIONTYPE_MAX];
    5151} KBUILDPROTECTION;
  • trunk/src/kmk/kmkbuiltin/setmode.c

    r1710 r2001  
    396396        case 'X':
    397397                set->cmd = op;
    398                 set->bits = (who ? who : mask) & oparg;
     398                set->bits = (who ? (mode_t)who : mask) & oparg;
    399399                break;
    400400
Note: See TracChangeset for help on using the changeset viewer.