Fixed some warnings.
This commit is contained in:
parent
bbaf0ea799
commit
3b233623cc
|
@ -15,9 +15,10 @@
|
|||
#include <signal.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "wine/exception.h"
|
||||
#include "debugger.h"
|
||||
#include "expr.h"
|
||||
#include "wine/exception.h"
|
||||
#include "task.h"
|
||||
|
||||
extern FILE * yyin;
|
||||
int curr_frame = 0;
|
||||
|
|
|
@ -10,7 +10,9 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "debugger.h"
|
||||
#include "miscemu.h"
|
||||
#include "winbase.h"
|
||||
|
||||
#ifdef __i386__
|
||||
|
@ -71,7 +73,7 @@ DWORD DEBUG_ToLinear( const DBG_ADDR *addr )
|
|||
LDT_ENTRY le;
|
||||
|
||||
if (IS_SELECTOR_V86(addr->seg))
|
||||
return DOSMEM_MemoryBase(DBG_V86_MODULE(addr->seg)) + (((addr->seg)&0xFFFF)<<4) + addr->off;
|
||||
return (DWORD) DOSMEM_MemoryBase(DBG_V86_MODULE(addr->seg)) + (((addr->seg)&0xFFFF)<<4) + addr->off;
|
||||
if (DEBUG_IsSelectorSystem(addr->seg))
|
||||
return addr->off;
|
||||
|
||||
|
|
|
@ -412,7 +412,7 @@ INT __cdecl CRTDLL_wctomb( LPSTR dst, WCHAR ch )
|
|||
/*********************************************************************
|
||||
* CRTDLL_iswalnum (CRTDLL.405)
|
||||
*/
|
||||
int CRTDLL_iswalnum( WCHAR wc )
|
||||
INT __cdecl CRTDLL_iswalnum( WCHAR wc )
|
||||
{
|
||||
#ifdef HAVE_WCTYPE_H
|
||||
#undef iswalnum
|
||||
|
@ -425,7 +425,7 @@ int CRTDLL_iswalnum( WCHAR wc )
|
|||
/*********************************************************************
|
||||
* CRTDLL_iswalpha (CRTDLL.406)
|
||||
*/
|
||||
int CRTDLL_iswalpha( WCHAR wc )
|
||||
INT __cdecl CRTDLL_iswalpha( WCHAR wc )
|
||||
{
|
||||
#ifdef HAVE_WCTYPE_H
|
||||
#undef iswalpha
|
||||
|
@ -438,7 +438,7 @@ int CRTDLL_iswalpha( WCHAR wc )
|
|||
/*********************************************************************
|
||||
* CRTDLL_iswcntrl (CRTDLL.408)
|
||||
*/
|
||||
int CRTDLL_iswcntrl( WCHAR wc )
|
||||
INT __cdecl CRTDLL_iswcntrl( WCHAR wc )
|
||||
{
|
||||
#ifdef HAVE_WCTYPE_H
|
||||
#undef iswcntrl
|
||||
|
@ -451,7 +451,7 @@ int CRTDLL_iswcntrl( WCHAR wc )
|
|||
/*********************************************************************
|
||||
* CRTDLL_iswdigit (CRTDLL.410)
|
||||
*/
|
||||
int CRTDLL_iswdigit( WCHAR wc )
|
||||
INT __cdecl CRTDLL_iswdigit( WCHAR wc )
|
||||
{
|
||||
#ifdef HAVE_WCTYPE_H
|
||||
#undef iswdigit
|
||||
|
@ -464,7 +464,7 @@ int CRTDLL_iswdigit( WCHAR wc )
|
|||
/*********************************************************************
|
||||
* CRTDLL_iswgraph (CRTDLL.411)
|
||||
*/
|
||||
int CRTDLL_iswgraph( WCHAR wc )
|
||||
INT __cdecl CRTDLL_iswgraph( WCHAR wc )
|
||||
{
|
||||
#ifdef HAVE_WCTYPE_H
|
||||
#undef iswgraph
|
||||
|
@ -477,7 +477,7 @@ int CRTDLL_iswgraph( WCHAR wc )
|
|||
/*********************************************************************
|
||||
* CRTDLL_iswlower (CRTDLL.412)
|
||||
*/
|
||||
int CRTDLL_iswlower( WCHAR wc )
|
||||
INT __cdecl CRTDLL_iswlower( WCHAR wc )
|
||||
{
|
||||
#ifdef HAVE_WCTYPE_H
|
||||
#undef iswlower
|
||||
|
@ -490,7 +490,7 @@ int CRTDLL_iswlower( WCHAR wc )
|
|||
/*********************************************************************
|
||||
* CRTDLL_iswprint (CRTDLL.413)
|
||||
*/
|
||||
int CRTDLL_iswprint( WCHAR wc )
|
||||
INT __cdecl CRTDLL_iswprint( WCHAR wc )
|
||||
{
|
||||
#ifdef HAVE_WCTYPE_H
|
||||
#undef iswprint
|
||||
|
@ -503,7 +503,7 @@ int CRTDLL_iswprint( WCHAR wc )
|
|||
/*********************************************************************
|
||||
* CRTDLL_iswpunct (CRTDLL.414)
|
||||
*/
|
||||
int CRTDLL_iswpunct( WCHAR wc )
|
||||
INT __cdecl CRTDLL_iswpunct( WCHAR wc )
|
||||
{
|
||||
#ifdef HAVE_WCTYPE_H
|
||||
#undef iswpunct
|
||||
|
@ -516,7 +516,7 @@ int CRTDLL_iswpunct( WCHAR wc )
|
|||
/*********************************************************************
|
||||
* CRTDLL_iswspace (CRTDLL.415)
|
||||
*/
|
||||
int CRTDLL_iswspace( WCHAR wc )
|
||||
INT __cdecl CRTDLL_iswspace( WCHAR wc )
|
||||
{
|
||||
#ifdef HAVE_WCTYPE_H
|
||||
#undef iswspace
|
||||
|
@ -529,7 +529,7 @@ int CRTDLL_iswspace( WCHAR wc )
|
|||
/*********************************************************************
|
||||
* CRTDLL_iswupper (CRTDLL.416)
|
||||
*/
|
||||
int CRTDLL_iswupper( WCHAR wc )
|
||||
INT __cdecl CRTDLL_iswupper( WCHAR wc )
|
||||
{
|
||||
#ifdef HAVE_WCTYPE_H
|
||||
#undef iswupper
|
||||
|
@ -542,7 +542,7 @@ int CRTDLL_iswupper( WCHAR wc )
|
|||
/*********************************************************************
|
||||
* CRTDLL_iswxdigit (CRTDLL.417)
|
||||
*/
|
||||
int CRTDLL_iswxdigit( WCHAR wc )
|
||||
INT __cdecl CRTDLL_iswxdigit( WCHAR wc )
|
||||
{
|
||||
#ifdef HAVE_WCTYPE_H
|
||||
#undef iswxdigit
|
||||
|
@ -555,9 +555,9 @@ int CRTDLL_iswxdigit( WCHAR wc )
|
|||
/*********************************************************************
|
||||
* CRTDLL_iswctype (CRTDLL.409)
|
||||
*/
|
||||
int CRTDLL_iswctype( WCHAR wc, WCHAR wct )
|
||||
INT __cdecl CRTDLL_iswctype( WCHAR wc, WCHAR wct )
|
||||
{
|
||||
int res = 0;
|
||||
INT res = 0;
|
||||
|
||||
if (wct & 0x0001) res |= CRTDLL_iswupper(wc);
|
||||
if (wct & 0x0002) res |= CRTDLL_iswlower(wc);
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
*/
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "windef.h"
|
||||
#include "wingdi.h"
|
||||
#include "winuser.h"
|
||||
|
@ -54,6 +55,8 @@
|
|||
#include "debugtools.h"
|
||||
#include "olestd.h"
|
||||
|
||||
#include "storage32.h"
|
||||
|
||||
#define HANDLE_ERROR(err) { hr = err; TRACE("(HRESULT=%lx)\n", (HRESULT)err); goto CLEANUP; }
|
||||
|
||||
/* For CoGetMalloc (MEMCTX_TASK is currently ignored) */
|
||||
|
|
|
@ -168,6 +168,13 @@ void BIGBLOCKFILE_ReleaseBigBlock(LPBIGBLOCKFILE This, void *pBlock);
|
|||
void BIGBLOCKFILE_SetSize(LPBIGBLOCKFILE This, ULARGE_INTEGER newSize);
|
||||
ULARGE_INTEGER BIGBLOCKFILE_GetSize(LPBIGBLOCKFILE This);
|
||||
|
||||
/*************************************************************************
|
||||
* Ole Convert support
|
||||
*/
|
||||
|
||||
void OLECONVERT_CreateOleStream(LPSTORAGE pStorage);
|
||||
HRESULT OLECONVERT_CreateCompObjStream(LPSTORAGE pStorage, LPCSTR strOleTypeName);
|
||||
|
||||
/****************************************************************************
|
||||
* Storage32BaseImpl definitions.
|
||||
*
|
||||
|
|
|
@ -5,8 +5,10 @@
|
|||
* 1998 Huw Davies
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "win16drv.h"
|
||||
#include "gdi.h"
|
||||
#include "bitmap.h"
|
||||
|
|
|
@ -1701,7 +1701,7 @@ static void X11DRV_DIB_SetImageBits_24( int lines, const BYTE *srcbits,
|
|||
if (bmpImage->bits_per_pixel == 24) {
|
||||
int tocopy = linebytes;
|
||||
BYTE *dstpixel;
|
||||
BYTE *ptr = srcbits+left*3;
|
||||
BYTE *ptr = (BYTE *)(srcbits+left*3);
|
||||
|
||||
if (tocopy < 0 ) tocopy = -tocopy;
|
||||
dstpixel = bmpImage->data + lines*tocopy + left*3;
|
||||
|
|
|
@ -210,6 +210,11 @@ void SYSDEPS_ExitThread( int status )
|
|||
_lwp_exit();
|
||||
#endif
|
||||
_exit( status );
|
||||
/*
|
||||
* It is of course impossible to come here,
|
||||
* but it eliminates a compiler warning.
|
||||
*/
|
||||
exit( status );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue