mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Compile using gcc 3.0
Fixed alot of warnings when using gcc 3.0 svn path=/trunk/; revision=2255
This commit is contained in:
parent
09237b9213
commit
2eb7adef67
183 changed files with 244 additions and 246 deletions
|
@ -1,9 +1,9 @@
|
||||||
/*
|
/*
|
||||||
* entry.c
|
* entry.c
|
||||||
*
|
*
|
||||||
* $Revision: 1.15 $
|
* $Revision: 1.16 $
|
||||||
* $Author: jfilby $
|
* $Author: chorns $
|
||||||
* $Date: 2001/07/01 14:32:47 $
|
* $Date: 2001/09/23 22:14:10 $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -487,3 +487,4 @@ ULONG VGADDIGetModes(IN HANDLE Driver,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,4 @@ typedef struct {
|
||||||
unsigned int empty:16;
|
unsigned int empty:16;
|
||||||
} long_double_t;
|
} long_double_t;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
|
@ -18,9 +18,9 @@
|
||||||
* DISCLAMED. This includes but is not limited to warranties of
|
* DISCLAMED. This includes but is not limited to warranties of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
*
|
*
|
||||||
* $Revision: 1.4 $
|
* $Revision: 1.5 $
|
||||||
* $Author: chorns $
|
* $Author: chorns $
|
||||||
* $Date: 2000/12/08 22:09:17 $
|
* $Date: 2001/09/23 22:14:02 $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
/* Appropriated for Reactos Crtdll by Ariadne */
|
/* Appropriated for Reactos Crtdll by Ariadne */
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: haltypes.h,v 1.1 2001/08/27 01:18:57 ekohl Exp $
|
/* $Id: haltypes.h,v 1.2 2001/09/23 22:14:03 chorns Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
|
|
@ -22,6 +22,4 @@ typedef struct {
|
||||||
unsigned int empty:16;
|
unsigned int empty:16;
|
||||||
} long_double_t;
|
} long_double_t;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
|
@ -18,9 +18,9 @@
|
||||||
* DISCLAMED. This includes but is not limited to warranties of
|
* DISCLAMED. This includes but is not limited to warranties of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
*
|
*
|
||||||
* $Revision: 1.1 $
|
* $Revision: 1.2 $
|
||||||
* $Author: ekohl $
|
* $Author: chorns $
|
||||||
* $Date: 2000/12/03 17:49:21 $
|
* $Date: 2001/09/23 22:14:03 $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
/* Appropriated for Reactos Crtdll by Ariadne */
|
/* Appropriated for Reactos Crtdll by Ariadne */
|
||||||
|
|
|
@ -44,18 +44,18 @@ static inline void __put_user(unsigned long x, void * y, int size)
|
||||||
{
|
{
|
||||||
switch (size) {
|
switch (size) {
|
||||||
case 1:
|
case 1:
|
||||||
__asm__ ("movb %b1,%%fs:%0"
|
__asm__ ("movb %b1,%%fs:%0" \
|
||||||
:"=m" (*__sd(y))
|
:"=m" (*__sd(y)) \
|
||||||
:"iq" ((unsigned char) x), "m" (*__sd(y)));
|
:"iq" ((unsigned char) x), "m" (*__sd(y)));
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
__asm__ ("movw %w1,%%fs:%0"
|
__asm__ ("movw %w1,%%fs:%0" \
|
||||||
:"=m" (*__sd(y))
|
:"=m" (*__sd(y)) \
|
||||||
:"ir" ((unsigned short) x), "m" (*__sd(y)));
|
:"ir" ((unsigned short) x), "m" (*__sd(y)));
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
__asm__ ("movl %1,%%fs:%0"
|
__asm__ ("movl %1,%%fs:%0" \
|
||||||
:"=m" (*__sd(y))
|
:"=m" (*__sd(y)) \
|
||||||
:"ir" (x), "m" (*__sd(y)));
|
:"ir" (x), "m" (*__sd(y)));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -69,18 +69,18 @@ static inline unsigned long __get_user(const void * y, int size)
|
||||||
|
|
||||||
switch (size) {
|
switch (size) {
|
||||||
case 1:
|
case 1:
|
||||||
__asm__ ("movb %%fs:%1,%b0"
|
__asm__ ("movb %%fs:%1,%b0" \
|
||||||
:"=q" (result)
|
:"=q" (result) \
|
||||||
:"m" (*__const_sd(y)));
|
:"m" (*__const_sd(y)));
|
||||||
return (unsigned char) result;
|
return (unsigned char) result;
|
||||||
case 2:
|
case 2:
|
||||||
__asm__ ("movw %%fs:%1,%w0"
|
__asm__ ("movw %%fs:%1,%w0" \
|
||||||
:"=r" (result)
|
:"=r" (result) \
|
||||||
:"m" (*__const_sd(y)));
|
:"m" (*__const_sd(y)));
|
||||||
return (unsigned short) result;
|
return (unsigned short) result;
|
||||||
case 4:
|
case 4:
|
||||||
__asm__ ("movl %%fs:%1,%0"
|
__asm__ ("movl %%fs:%1,%0" \
|
||||||
:"=r" (result)
|
:"=r" (result) \
|
||||||
:"m" (*__const_sd(y)));
|
:"m" (*__const_sd(y)));
|
||||||
return result;
|
return result;
|
||||||
default:
|
default:
|
||||||
|
@ -91,26 +91,26 @@ static inline unsigned long __get_user(const void * y, int size)
|
||||||
static inline void __generic_memcpy_tofs(void * to, const void * from, unsigned long n)
|
static inline void __generic_memcpy_tofs(void * to, const void * from, unsigned long n)
|
||||||
{
|
{
|
||||||
__asm__ volatile
|
__asm__ volatile
|
||||||
(" cld
|
(" cld \
|
||||||
push %%es
|
push %%es \
|
||||||
push %%fs
|
push %%fs \
|
||||||
cmpl $3,%0
|
cmpl $3,%0 \
|
||||||
pop %%es
|
pop %%es \
|
||||||
jbe 1f
|
jbe 1f \
|
||||||
movl %%edi,%%ecx
|
movl %%edi,%%ecx \
|
||||||
negl %%ecx
|
negl %%ecx \
|
||||||
andl $3,%%ecx
|
andl $3,%%ecx \
|
||||||
subl %%ecx,%0
|
subl %%ecx,%0 \
|
||||||
rep; movsb
|
rep; movsb \
|
||||||
movl %0,%%ecx
|
movl %0,%%ecx \
|
||||||
shrl $2,%%ecx
|
shrl $2,%%ecx \
|
||||||
rep; movsl
|
rep; movsl \
|
||||||
andl $3,%0
|
andl $3,%0 \
|
||||||
1: movl %0,%%ecx
|
1: movl %0,%%ecx \
|
||||||
rep; movsb
|
rep; movsb \
|
||||||
pop %%es"
|
pop %%es" \
|
||||||
:"=abd" (n)
|
:"=abd" (n) \
|
||||||
:"0" (n),"D" ((long) to),"S" ((long) from)
|
:"0" (n),"D" ((long) to),"S" ((long) from) \
|
||||||
:"cx","di","si");
|
:"cx","di","si");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -180,19 +180,19 @@ __asm__("cld\n\t" \
|
||||||
static inline void __generic_memcpy_fromfs(void * to, const void * from, unsigned long n)
|
static inline void __generic_memcpy_fromfs(void * to, const void * from, unsigned long n)
|
||||||
{
|
{
|
||||||
__asm__ volatile
|
__asm__ volatile
|
||||||
(" cld
|
(" cld \
|
||||||
cmpl $3,%0
|
cmpl $3,%0 \
|
||||||
jbe 1f
|
jbe 1f \
|
||||||
movl %%edi,%%ecx
|
movl %%edi,%%ecx \
|
||||||
negl %%ecx
|
negl %%ecx \
|
||||||
andl $3,%%ecx
|
andl $3,%%ecx \
|
||||||
subl %%ecx,%0
|
subl %%ecx,%0 \
|
||||||
fs; rep; movsb
|
fs; rep; movsb \
|
||||||
movl %0,%%ecx
|
movl %0,%%ecx \
|
||||||
shrl $2,%%ecx
|
shrl $2,%%ecx \
|
||||||
fs; rep; movsl
|
fs; rep; movsl \
|
||||||
andl $3,%0
|
andl $3,%0 \
|
||||||
1: movl %0,%%ecx
|
1: movl %0,%%ecx \
|
||||||
fs; rep; movsb"
|
fs; rep; movsb"
|
||||||
:"=abd" (n)
|
:"=abd" (n)
|
||||||
:"0" (n),"D" ((long) to),"S" ((long) from)
|
:"0" (n),"D" ((long) to),"S" ((long) from)
|
||||||
|
|
|
@ -25,6 +25,3 @@ int mblen( const char *s, size_t count )
|
||||||
return -1;
|
return -1;
|
||||||
return l;
|
return l;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ vswprintf(wchar_t *str, const wchar_t *fmt, va_list ap)
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
f._flag = _IOWRT|_IOSTRG;
|
f._flag = _IOWRT|_IOSTRG;
|
||||||
f._ptr = str;
|
f._ptr = (char*)str;
|
||||||
f._cnt = INT_MAX;
|
f._cnt = INT_MAX;
|
||||||
f._file = -1;
|
f._file = -1;
|
||||||
len = vfwprintf(&f,fmt, ap);
|
len = vfwprintf(&f,fmt, ap);
|
||||||
|
@ -56,7 +56,7 @@ _vsnwprintf(wchar_t *str, size_t maxlen, const wchar_t *fmt, va_list ap)
|
||||||
FILE f;
|
FILE f;
|
||||||
int len;
|
int len;
|
||||||
f._flag = _IOWRT|_IOSTRG;
|
f._flag = _IOWRT|_IOSTRG;
|
||||||
f._ptr = str;
|
f._ptr = (char*)str;
|
||||||
f._cnt = maxlen;
|
f._cnt = maxlen;
|
||||||
f._file = -1;
|
f._file = -1;
|
||||||
len = vfwprintf(&f,fmt, ap);
|
len = vfwprintf(&f,fmt, ap);
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
static const wchar_t encoding_mask[] =
|
static const wchar_t encoding_mask[] =
|
||||||
{
|
{
|
||||||
~0x7ff, ~0xffff, ~0x1fffff, ~0x3ffffff
|
(wchar_t)~0x7ff, (wchar_t)~0xffff, (wchar_t)~0x1fffff, (wchar_t)~0x3ffffff
|
||||||
};
|
};
|
||||||
|
|
||||||
static const unsigned char encoding_byte[] =
|
static const unsigned char encoding_byte[] =
|
||||||
|
|
|
@ -56,3 +56,4 @@ unsigned char * _mbsnbcat(unsigned char *dst, const unsigned char *src, size_t n
|
||||||
}
|
}
|
||||||
return dst;
|
return dst;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,3 +37,4 @@ int _mbsnbicmp(const unsigned char *s1, const unsigned char *s2, size_t n)
|
||||||
} while (n > 0);
|
} while (n > 0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
||||||
|
#include <stdarg.h>
|
||||||
#include <msvcrt/stdio.h>
|
#include <msvcrt/stdio.h>
|
||||||
#include <msvcrt/stdarg.h>
|
|
||||||
#include <msvcrt/malloc.h>
|
#include <msvcrt/malloc.h>
|
||||||
#include <msvcrt/internal/file.h>
|
#include <msvcrt/internal/file.h>
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ int _isinf(double x);
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
__vfprintf (FILE *fp, const char *fmt0, va_list argp);
|
__vfprintf (FILE *fp, const char *fmt0, va_list args);
|
||||||
|
|
||||||
int
|
int
|
||||||
vfprintf(FILE *f, const char *fmt, va_list ap)
|
vfprintf(FILE *f, const char *fmt, va_list ap)
|
||||||
|
|
|
@ -16,11 +16,10 @@
|
||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
#include <msvcrt/errno.h>
|
#include <msvcrt/errno.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <msvcrt/ctype.h>
|
#include <msvcrt/ctype.h>
|
||||||
#include <msvcrt/stdarg.h>
|
|
||||||
#include <msvcrt/stdio.h>
|
#include <msvcrt/stdio.h>
|
||||||
#include <msvcrt/stdlib.h>
|
#include <msvcrt/stdlib.h>
|
||||||
#include <msvcrt/string.h>
|
#include <msvcrt/string.h>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
||||||
|
#include <stdarg.h>
|
||||||
#include <msvcrt/stdio.h>
|
#include <msvcrt/stdio.h>
|
||||||
#include <msvcrt/stdarg.h>
|
|
||||||
#include <msvcrt/malloc.h>
|
#include <msvcrt/malloc.h>
|
||||||
#include <msvcrt/internal/file.h>
|
#include <msvcrt/internal/file.h>
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# $Id: makefile,v 1.65 2001/08/21 20:13:06 chorns Exp $
|
# $Id: makefile,v 1.66 2001/09/23 22:14:09 chorns Exp $
|
||||||
|
|
||||||
PATH_TO_TOP = ../..
|
PATH_TO_TOP = ../..
|
||||||
|
|
||||||
|
@ -9,7 +9,8 @@ TARGET_NAME = ntdll
|
||||||
TARGET_CFLAGS = -D__NTDLL__
|
TARGET_CFLAGS = -D__NTDLL__
|
||||||
|
|
||||||
TARGET_LFLAGS = -Wl,--file-alignment,0x1000 \
|
TARGET_LFLAGS = -Wl,--file-alignment,0x1000 \
|
||||||
-Wl,--section-alignment,0x1000
|
-Wl,--section-alignment,0x1000 \
|
||||||
|
-nostartfiles
|
||||||
|
|
||||||
TARGET_GCCLIBS = gcc
|
TARGET_GCCLIBS = gcc
|
||||||
|
|
||||||
|
|
|
@ -54,6 +54,7 @@ NtSystemDebugControl(DEBUG_CONTROL_CODE ControlCode,
|
||||||
#ifdef KDBG
|
#ifdef KDBG
|
||||||
LdrLoadUserModuleSymbols((PLDR_MODULE)InputBuffer);
|
LdrLoadUserModuleSymbols((PLDR_MODULE)InputBuffer);
|
||||||
#endif /* KDBG */
|
#endif /* KDBG */
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,8 @@ rcopy$(EXE_POSTFIX): rcopy.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
rdel$(EXE_POSTFIX): rdel.c
|
rdel$(EXE_POSTFIX): rdel.c
|
||||||
$(HOST_CC) $(CFLAGS) -liberty rdel.c -o rdel$(EXE_POSTFIX)
|
$(HOST_CC) $(CFLAGS) rdel.c -o rdel$(EXE_POSTFIX)
|
||||||
|
# $(HOST_CC) $(CFLAGS) -liberty rdel.c -o rdel$(EXE_POSTFIX)
|
||||||
|
|
||||||
ifeq ($(HOST),mingw32-linux)
|
ifeq ($(HOST),mingw32-linux)
|
||||||
rmkdir$(EXE_POSTFIX): rmkdir.c
|
rmkdir$(EXE_POSTFIX): rmkdir.c
|
||||||
|
|
Loading…
Reference in a new issue