Fixed warnings, some only visible with -Wstrict-prototypes or -pedantic.

oldstable
Juergen Schmied 1998-11-14 18:59:30 +00:00 committed by Alexandre Julliard
parent 431d1a0ce2
commit ebc2b778d5
6 changed files with 11 additions and 9 deletions

View File

@ -20,9 +20,9 @@ extern COLORREF COLOR_ToLogical(int pixel);
extern int COLOR_ToPhysical( DC *dc, COLORREF color );
extern int COLOR_SetMapping( PALETTEOBJ* pal, UINT32 uStart, UINT32 uNum, BOOL32 mapOnly );
extern BOOL32 COLOR_IsSolid( COLORREF color );
extern Colormap COLOR_GetColormap();
extern UINT16 COLOR_GetSystemPaletteSize();
extern UINT16 COLOR_GetSystemPaletteFlags();
extern Colormap COLOR_GetColormap(void);
extern UINT16 COLOR_GetSystemPaletteSize(void);
extern UINT16 COLOR_GetSystemPaletteFlags(void);
extern const PALETTEENTRY* COLOR_GetSystemPaletteTemplate(void);
extern BOOL32 COLOR_GetMonoPlane( int* );

View File

@ -669,6 +669,7 @@ BOOL32 WINAPI ImageUnload32(
PLOADED_IMAGE32 LoadedImage
);
PAPI_VERSION32 WINAPI ImagehlpApiVersion32(
void
);
PAPI_VERSION32 WINAPI ImagehlpApiVersionEx32(
PAPI_VERSION32 AppVersion
@ -743,6 +744,7 @@ BOOL32 WINAPI SymGetModuleInfo32(
PIMAGEHLP_MODULE32 ModuleInfo
);
DWORD WINAPI SymGetOptions32(
void
);
BOOL32 WINAPI SymGetSearchPath32(
HANDLE32 hProcess, LPSTR szSearchPath, DWORD SearchPathLength

View File

@ -19,7 +19,7 @@ typedef struct
LOGPALETTE logpalette; /* _MUST_ be the last field */
} PALETTEOBJ;
extern HPALETTE16 PALETTE_Init();
extern HPALETTE16 PALETTE_Init(void);
extern int PALETTE_GetObject( PALETTEOBJ * palette, int count, LPSTR buffer );
extern BOOL32 PALETTE_DeleteObject( HPALETTE16 hpalette, PALETTEOBJ *palette );
extern BOOL32 PALETTE_UnrealizeObject( HPALETTE16 hpalette, PALETTEOBJ *palette);

View File

@ -75,7 +75,7 @@ static GLOBALARENA *GLOBAL_GetArena( WORD sel, WORD selcount )
}
void debug_handles()
void debug_handles(void)
{
int printed=0;
int i;

View File

@ -40,7 +40,7 @@
#include "winreg.h"
#include "winversion.h"
static void REGISTRY_Init();
static void REGISTRY_Init(void);
/* FIXME: following defines should be configured global ... */
/* NOTE: do not append a /. linux' mkdir() WILL FAIL if you do that */
@ -404,7 +404,7 @@ static void split_keypath( LPCWSTR wp, LPWSTR **wpv, int *wpc)
* REGISTRY_Init [Internal]
* Registry initialisation, allocates some default keys.
*/
static void REGISTRY_Init() {
static void REGISTRY_Init(void) {
HKEY hkey;
char buf[200];
@ -1560,7 +1560,7 @@ __w31_dumptree( unsigned short idx,
/******************************************************************************
* _w31_loadreg [Internal]
*/
void _w31_loadreg() {
void _w31_loadreg(void) {
HFILE32 hf;
struct _w31_header head;
struct _w31_tabent *tab;

View File

@ -374,7 +374,7 @@ static LRESULT DEFWND_DefWinProc( WND *wndPtr, UINT32 msg, WPARAM32 wParam,
for(len=1; len<64; len++)
if((hIcon=LoadIcon16(wndPtr->hInstance,MAKEINTRESOURCE16(len))))
return (LRESULT)hIcon;
return (LRESULT)LoadIcon16(NULL,IDI_APPLICATION16);
return (LRESULT)LoadIcon16(0,IDI_APPLICATION16);
}
break;