mirror of
https://github.com/reactos/reactos.git
synced 2025-06-01 23:48:12 +00:00
[CRT]
- Fix some MSVC warnings - Comment out files with duplicated functions See CORE-6684 svn path=/trunk/; revision=57342
This commit is contained in:
parent
9c8421dafe
commit
28d28e2164
2 changed files with 18 additions and 18 deletions
|
@ -187,9 +187,9 @@ list(APPEND CRT_SOURCE
|
|||
startup/mingw_helpers.c
|
||||
startup/natstart.c
|
||||
startup/charmax.c
|
||||
startup/merr.c
|
||||
startup/atonexit.c
|
||||
startup/txtmode.c
|
||||
#startup/merr.c
|
||||
#startup/atonexit.c
|
||||
#startup/txtmode.c
|
||||
startup/pesect.c
|
||||
startup/tlsmcrt.c
|
||||
startup/tlsthrd.c
|
||||
|
|
|
@ -309,7 +309,7 @@ static FILE* alloc_fp(void)
|
|||
unsigned int i;
|
||||
FILE *file;
|
||||
|
||||
for (i = 3; i < max_streams; i++)
|
||||
for (i = 3; i < (unsigned int)max_streams; i++)
|
||||
{
|
||||
file = get_file(i);
|
||||
if (!file)
|
||||
|
@ -396,7 +396,7 @@ unsigned create_io_inherit_block(WORD *size, BYTE **block)
|
|||
void msvcrt_init_io(void)
|
||||
{
|
||||
STARTUPINFOA si;
|
||||
int i;
|
||||
unsigned int i;
|
||||
ioinfo *fdinfo;
|
||||
|
||||
InitializeCriticalSection(&file_cs);
|
||||
|
@ -1017,7 +1017,7 @@ __int64 CDECL _lseeki64(int fd, __int64 offset, int whence)
|
|||
*/
|
||||
LONG CDECL _lseek(int fd, LONG offset, int whence)
|
||||
{
|
||||
return _lseeki64(fd, offset, whence);
|
||||
return (LONG)_lseeki64(fd, offset, whence);
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
|
@ -2470,7 +2470,7 @@ size_t CDECL fwrite(const void *ptr, size_t size, size_t nmemb, FILE* file)
|
|||
|
||||
_lock_file(file);
|
||||
if(file->_cnt) {
|
||||
int pcnt=(file->_cnt>wrcnt)? wrcnt: file->_cnt;
|
||||
int pcnt=((unsigned)file->_cnt>wrcnt)? wrcnt: file->_cnt;
|
||||
memcpy(file->_ptr, ptr, pcnt);
|
||||
file->_cnt -= pcnt;
|
||||
file->_ptr += pcnt;
|
||||
|
@ -2693,7 +2693,7 @@ size_t CDECL fread(void *ptr, size_t size, size_t nmemb, FILE* file)
|
|||
|
||||
/* first buffered data */
|
||||
if(file->_cnt>0) {
|
||||
int pcnt= (rcnt>file->_cnt)? file->_cnt:rcnt;
|
||||
int pcnt= (rcnt>(unsigned int)file->_cnt)? file->_cnt:rcnt;
|
||||
memcpy(ptr, file->_ptr, pcnt);
|
||||
file->_cnt -= pcnt;
|
||||
file->_ptr += pcnt;
|
||||
|
@ -2720,7 +2720,7 @@ size_t CDECL fread(void *ptr, size_t size, size_t nmemb, FILE* file)
|
|||
}
|
||||
file->_cnt = _read(file->_file, file->_base, file->_bufsiz);
|
||||
file->_ptr = file->_base;
|
||||
i = (file->_cnt<rcnt) ? file->_cnt : rcnt;
|
||||
i = ((unsigned int)file->_cnt<rcnt) ? file->_cnt : rcnt;
|
||||
/* If the buffer fill reaches eof but fread wouldn't, clear eof. */
|
||||
if (i > 0 && i < file->_cnt) {
|
||||
get_ioinfo(file->_file)->wxflag &= ~WX_ATEOF;
|
||||
|
@ -2884,7 +2884,7 @@ __int64 CDECL _ftelli64(FILE* file)
|
|||
*/
|
||||
LONG CDECL ftell(FILE* file)
|
||||
{
|
||||
return _ftelli64(file);
|
||||
return (LONG)_ftelli64(file);
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
|
|
Loading…
Reference in a new issue