Assorted non-ANSI function declaration fixes (missing void).

This commit is contained in:
Francois Gouget 2007-08-29 21:42:28 +02:00 committed by Alexandre Julliard
parent 8def2deccb
commit 2993785f3a
21 changed files with 27 additions and 27 deletions

View File

@ -269,7 +269,7 @@ BOOL WINAPI cdtAnimate(HDC hdc, int cardback, int x, int y, int frame)
/***********************************************************************
* Frees resources reserved by cdtInitialize.
*/
void WINAPI cdtTerm()
void WINAPI cdtTerm(void)
{
int i;

View File

@ -395,7 +395,7 @@ static LRESULT WINAPI parent_wnd_proc(HWND hwnd, UINT message, WPARAM wParam, LP
return ret;
}
static BOOL register_parent_wnd_class()
static BOOL register_parent_wnd_class(void)
{
WNDCLASSA cls;

View File

@ -948,7 +948,7 @@ static void test_getbuttoninfo(void)
DestroyWindow(hToolbar);
}
static void test_createtoolbarex()
static void test_createtoolbarex(void)
{
HWND hToolbar;
TBBUTTON btns[3];

View File

@ -56,7 +56,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
*
*/
#if 0
HRESULT WINAPI DPNHPAST_DirectPlayNATHelpCreate()
HRESULT WINAPI DPNHPAST_DirectPlayNATHelpCreate(void)
{
/* @stub in .spec */
}

View File

@ -26,7 +26,7 @@
#define expect(expected, got) ok(got == expected, "Expected %.8x, got %.8x\n", expected, got)
#define TABLE_LEN (23)
static void test_constructor_destructor()
static void test_constructor_destructor(void)
{
GpStatus stat;
GpGraphics *graphics = NULL;
@ -91,7 +91,7 @@ end:
expect(0, dups);
}
static void test_save_restore()
static void test_save_restore(void)
{
GpStatus stat;
GraphicsState state_a, state_b, state_c;

View File

@ -24,7 +24,7 @@
#define expect(expected, got) ok(((UINT)got) == ((UINT)expected), "Expected %.8x, got %.8x\n", (UINT)expected, (UINT)got)
static void test_Scan0()
static void test_Scan0(void)
{
GpBitmap *bm;
GpStatus stat;

View File

@ -72,7 +72,7 @@ static void UI_EndDialog(HWND hwnd, INT_PTR rc)
EndDialog(hwnd, rc);
}
static int GetAllImages()
static int GetAllImages(void)
{
struct gphoto2_file *file;
int has_images = 0;

View File

@ -579,7 +579,7 @@ int relay_call_from_16( void *entry_point, unsigned char *args16, CONTEXT86 *con
/***********************************************************************
* __wine_call_from_16_regs (KERNEL32.@)
*/
void __wine_call_from_16_regs()
void __wine_call_from_16_regs(void)
{
assert( FALSE );
}

View File

@ -172,7 +172,7 @@ static BSTR _bstr_(const char *str)
return alloced_bstrs[alloced_bstrs_count++];
}
static void free_bstrs()
static void free_bstrs(void)
{
int i;
for (i = 0; i < alloced_bstrs_count; i++)
@ -1457,7 +1457,7 @@ static void test_IXMLDOMDocument2(void)
free_bstrs();
}
static void test_XPath()
static void test_XPath(void)
{
HRESULT r;
VARIANT var;

View File

@ -574,7 +574,7 @@ HRESULT WINAPI GetActiveObject(REFCLSID rcid,LPVOID preserved,LPUNKNOWN *ppunk)
* Currently the versions returned are 2.20 for Win3.1, 2.30 for Win95 & NT 3.51,
* and 2.40 for all later versions. The build number is maximum, i.e. 0xffff.
*/
ULONG WINAPI OaBuildVersion()
ULONG WINAPI OaBuildVersion(void)
{
switch(GetVersion() & 0x8000ffff) /* mask off build number */
{

View File

@ -33,7 +33,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ole);
/***********************************************************************
* DllUnregisterServer (OLEPRO32.258)
*/
HRESULT WINAPI DllUnregisterServer()
HRESULT WINAPI DllUnregisterServer(void)
{
FIXME("stub\n");
return S_OK;
@ -42,7 +42,7 @@ HRESULT WINAPI DllUnregisterServer()
/***********************************************************************
* DllRegisterServer (OLEPRO32.257)
*/
HRESULT WINAPI DllRegisterServer()
HRESULT WINAPI DllRegisterServer(void)
{
FIXME("stub\n");
return S_OK;

View File

@ -201,7 +201,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
/***********************************************************************
* DllCanUnloadNow (QUARTZ.@)
*/
HRESULT WINAPI DllCanUnloadNow()
HRESULT WINAPI DllCanUnloadNow(void)
{
return dll_ref != 0 ? S_FALSE : S_OK;
}

View File

@ -150,7 +150,7 @@ BOOL WINAPI RegistryDelnode(DWORD x, DWORD y)
/***********************************************************************
* SetupCloseLog(SETUPAPI.@)
*/
void WINAPI SetupCloseLog()
void WINAPI SetupCloseLog(void)
{
FIXME("() stub\n");
}

View File

@ -27,7 +27,7 @@
static HWND hMainWnd;
void test_cbsize()
void test_cbsize(void)
{
NOTIFYICONDATAW nidW;
NOTIFYICONDATAA nidA;

View File

@ -184,7 +184,7 @@ HRESULT WINAPI SHSetThreadRef(IUnknown *lpUnknown)
* Success: S_OK. The threads object reference is released.
* Failure: An HRESULT error code.
*/
HRESULT WINAPI SHReleaseThreadRef()
HRESULT WINAPI SHReleaseThreadRef(void)
{
FIXME("() - stub!\n");
return S_OK;

View File

@ -565,7 +565,7 @@ static void test_instances(void)
check_thread_instance( "EDIT", (HINSTANCE)0x12345678, (HINSTANCE)0x12345678, (HINSTANCE)0xdeadbeef );
}
static void test_defwndproc()
static void test_defwndproc(void)
{
static const char classA[] = "deftest";
static const WCHAR classW[] = {'d','e','f','t','e','s','t',0};

View File

@ -842,7 +842,7 @@ HRESULT WINAPI GetThemeDocumentationProperty(LPCWSTR pszThemeName,
* RETURNS
* some kind of status flag
*/
DWORD WINAPI QueryThemeServices()
DWORD WINAPI QueryThemeServices(void)
{
FIXME("stub\n");
return 3; /* This is what is returned under XP in most cases */

View File

@ -646,7 +646,7 @@ void VGA_SetWindowStart(int start)
* Get start of 64k window at 0xa0000 in bytes.
* Value is -1 in color plane modes.
*/
int VGA_GetWindowStart()
int VGA_GetWindowStart(void)
{
return vga_fb_window;
}

View File

@ -55,12 +55,12 @@ static int cmp_by_name(const void *a, const void *b)
return strcmp(((const GLYPHINFO *)a)->name, ((const GLYPHINFO *)b)->name);
}
static inline void sort_by_UV()
static inline void sort_by_UV(void)
{
qsort(glyphs, num_glyphs, sizeof(GLYPHINFO), cmp_by_UV);
}
static inline void sort_by_name()
static inline void sort_by_name(void)
{
qsort(glyphs, num_glyphs, sizeof(GLYPHINFO), cmp_by_name);
}
@ -113,7 +113,7 @@ static inline void triple_space(FILE *f)
* Read the Adobe Glyph List from 'glyphlist.txt'
*/
static void read_agl()
static void read_agl(void)
{
FILE *f = fopen("glyphlist.txt", "r");
char linebuf[256], namebuf[128], commbuf[128];

View File

@ -111,7 +111,7 @@ static void GraphCtrl_Init(TGraphCtrl* this)
}
#if 0
TGraphCtrl::~TGraphCtrl()
TGraphCtrl::~TGraphCtrl(void)
{
/* just to be picky restore the bitmaps for the two memory dc's */
/* (these dc's are being destroyed so there shouldn't be any leaks) */
@ -515,7 +515,7 @@ void GraphCtrl_Resize(TGraphCtrl* this)
}
#if 0
void TGraphCtrl::Reset()
void TGraphCtrl::Reset(void)
{
/* to clear the existing data (in the form of a bitmap) */
/* simply invalidate the entire control */

View File

@ -1139,7 +1139,7 @@ sub _generate_winetest_c($) {
print OUT "/* Automatically generated file; DO NOT EDIT!! */\n\n";
print OUT "/* Force the linker to generate a .lib file */\n";
print OUT "void __wine_dummy_lib_function()\n{\n}\n\n";
print OUT "void __wine_dummy_lib_function(void)\n{\n}\n\n";
}
if ($options->wine) {