Changeset 3868 for trunk


Ignore:
Timestamp:
Jun 27, 2014, 12:08:18 AM (11 years ago)
Author:
bird
Message:

warnings

Location:
trunk/libc
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/libc/include/malloc.h

    r3808 r3868  
    1010#include <sys/cdefs.h>
    1111#include <sys/_types.h>
     12#include <alloca.h> /* The Microsoft CRT defines alloca in malloc.h. */
    1213
    1314#if defined (__cplusplus)
  • trunk/libc/include/setjmp.h

    r1506 r3868  
    6666void    siglongjmp(sigjmp_buf, int) __dead2;
    6767int     sigsetjmp(sigjmp_buf, int);
     68# ifdef __WATCOMC_
     69#  pragma aux _longjmp aborts;
     70#  pragma aux siglongjmp aborts;
     71# endif
     72#endif
     73#ifdef __WATCOMC_
     74# pragma aux longjmp aborts;
    6875#endif
    6976__END_DECLS
  • trunk/libc/include/stdlib.h

    r3808 r3868  
    123123size_t   wcstombs(char * __restrict, const wchar_t * __restrict, size_t);
    124124
     125#ifdef __WATCOMC_
     126# pragma aux abort aborts;
     127# pragma aux exit aborts;
     128#endif
     129
    125130/*
    126131 * Functions added in C99 which we make conditionally available in the
     
    158163
    159164void     _Exit(int) __dead2;
     165# ifdef __WATCOMC_
     166#  pragma aux _Exit aborts;
     167# endif
    160168#endif /* __ISO_C_VISIBLE >= 1999 */
    161169
     
    225233            const char *);
    226234
     235# ifndef __KLIBC__
    227236/*
    228237 * The alloca() function can't be implemented in C, and on some
     
    240249void    *alloca(size_t);
    241250#endif
     251# else   /* __KLIBC__ - get alloca from alloca.h. */
     252#  include "alloca.h"
     253# endif  /* __KLIBC__ */
    242254
    243255__uint32_t
  • trunk/libc/src/libc/io/_output.c

    r3281 r3868  
    807807    default:
    808808      abort ();
     809      return -1; /* shut up watcom */
    809810    }
    810811}
  • trunk/libc/src/libc/io/freopen.c

    r2672 r3868  
    104104      if (stream->_flags & _IOOPEN)
    105105        {
    106           int omode;
     106          unsigned int omode;
    107107          int flags = _interpret_stream_mode(mode, &omode);
    108108          if (flags != -1)
Note: See TracChangeset for help on using the changeset viewer.