mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 14:10:32 +00:00
Remove some -Wstrict-prototypes warnings.
This commit is contained in:
parent
e70e3ba0ff
commit
03cc8c4181
@ -4632,7 +4632,7 @@ static inline BSTR GetBSTR(const LPINTERNAL_BSTR bstr)
|
||||
return (BSTR)bstr->szString;
|
||||
}
|
||||
|
||||
static void test_SysStringLen()
|
||||
static void test_SysStringLen(void)
|
||||
{
|
||||
INTERNAL_BSTR bstr;
|
||||
BSTR str = GetBSTR(&bstr);
|
||||
@ -4643,7 +4643,7 @@ static void test_SysStringLen()
|
||||
ok (SysStringLen(str) == 1, "Expected dwLen 1, got %d\n", SysStringLen(str));
|
||||
}
|
||||
|
||||
static void test_SysStringByteLen()
|
||||
static void test_SysStringByteLen(void)
|
||||
{
|
||||
INTERNAL_BSTR bstr;
|
||||
BSTR str = GetBSTR(&bstr);
|
||||
@ -4654,7 +4654,7 @@ static void test_SysStringByteLen()
|
||||
ok (SysStringByteLen(str) == 2, "Expected dwLen 2, got %d\n", SysStringByteLen(str));
|
||||
}
|
||||
|
||||
static void test_SysAllocString()
|
||||
static void test_SysAllocString(void)
|
||||
{
|
||||
const OLECHAR szTest[5] = { 'T','e','s','t','\0' };
|
||||
BSTR str;
|
||||
@ -4674,7 +4674,7 @@ static void test_SysAllocString()
|
||||
}
|
||||
}
|
||||
|
||||
static void test_SysAllocStringLen()
|
||||
static void test_SysAllocStringLen(void)
|
||||
{
|
||||
const OLECHAR szTest[5] = { 'T','e','s','t','\0' };
|
||||
BSTR str;
|
||||
@ -4710,7 +4710,7 @@ static void test_SysAllocStringLen()
|
||||
}
|
||||
}
|
||||
|
||||
static void test_SysAllocStringByteLen()
|
||||
static void test_SysAllocStringByteLen(void)
|
||||
{
|
||||
const OLECHAR szTest[10] = { 'T','e','s','t','\0' };
|
||||
const CHAR szTestA[6] = { 'T','e','s','t','\0','?' };
|
||||
@ -4766,7 +4766,7 @@ static void test_SysAllocStringByteLen()
|
||||
}
|
||||
}
|
||||
|
||||
static void test_SysReAllocString()
|
||||
static void test_SysReAllocString(void)
|
||||
{
|
||||
const OLECHAR szTest[5] = { 'T','e','s','t','\0' };
|
||||
const OLECHAR szSmaller[2] = { 'x','\0' };
|
||||
@ -4805,7 +4805,7 @@ static void test_SysReAllocString()
|
||||
}
|
||||
}
|
||||
|
||||
static void test_SysReAllocStringLen()
|
||||
static void test_SysReAllocStringLen(void)
|
||||
{
|
||||
const OLECHAR szTest[5] = { 'T','e','s','t','\0' };
|
||||
const OLECHAR szSmaller[2] = { 'x','\0' };
|
||||
@ -4844,7 +4844,7 @@ static void test_SysReAllocStringLen()
|
||||
}
|
||||
}
|
||||
|
||||
static void test_BstrCopy()
|
||||
static void test_BstrCopy(void)
|
||||
{
|
||||
const CHAR szTestA[6] = { 'T','e','s','t','\0','?' };
|
||||
const CHAR szTestTruncA[4] = { 'T','e','s','\0' };
|
||||
@ -5302,7 +5302,7 @@ static void test_ClearCustData(void)
|
||||
ok(!ci.cCustData && !ci.prgCustData, "ClearCustData didn't clear fields!\n");
|
||||
}
|
||||
|
||||
static void test_NullByRef()
|
||||
static void test_NullByRef(void)
|
||||
{
|
||||
VARIANT v1, v2;
|
||||
HRESULT hRes;
|
||||
@ -5333,7 +5333,7 @@ static void test_NullByRef()
|
||||
}
|
||||
|
||||
/* Dst Variant should remain unchanged if VariantChangeType cannot convert */
|
||||
static void test_ChangeType_keep_dst()
|
||||
static void test_ChangeType_keep_dst(void)
|
||||
{
|
||||
VARIANT v1, v2;
|
||||
BSTR bstr;
|
||||
|
@ -52,7 +52,7 @@ static void test_CreateURLMoniker(LPCWSTR url1, LPCWSTR url2)
|
||||
if(mon2) IMoniker_Release(mon2);
|
||||
}
|
||||
|
||||
static void test_create()
|
||||
static void test_create(void)
|
||||
{
|
||||
test_CreateURLMoniker(TEST_URL_1, TEST_PART_URL_1);
|
||||
}
|
||||
@ -196,7 +196,7 @@ static IBindStatusCallback* statusclb_create()
|
||||
return (IBindStatusCallback*)ret;
|
||||
}
|
||||
|
||||
static void test_CreateAsyncBindCtx()
|
||||
static void test_CreateAsyncBindCtx(void)
|
||||
{
|
||||
IBindCtx *bctx = (IBindCtx*)0x0ff00ff0;
|
||||
HRESULT hres;
|
||||
@ -234,7 +234,7 @@ static void test_CreateAsyncBindCtx()
|
||||
ok(ref == 0, "bsc should be destroyed here\n");
|
||||
}
|
||||
|
||||
static void test_BindToStorage()
|
||||
static void test_BindToStorage(void)
|
||||
{
|
||||
IMoniker *mon;
|
||||
HRESULT hres;
|
||||
|
@ -2621,7 +2621,7 @@ static void check_window_style(DWORD dwStyleIn, DWORD dwExStyleIn, DWORD dwStyle
|
||||
}
|
||||
|
||||
/* tests what window styles the window manager automatically adds */
|
||||
static void test_window_styles()
|
||||
static void test_window_styles(void)
|
||||
{
|
||||
register_style_check_class();
|
||||
|
||||
@ -2902,7 +2902,7 @@ static void test_AWR_window_size(BOOL menu)
|
||||
|
||||
#define SHOWSYSMETRIC(SM) trace(#SM "=%d\n", GetSystemMetrics(SM))
|
||||
|
||||
static void test_AdjustWindowRect()
|
||||
static void test_AdjustWindowRect(void)
|
||||
{
|
||||
if (!AWR_init())
|
||||
return;
|
||||
@ -2952,7 +2952,7 @@ static LRESULT WINAPI redraw_window_procA(HWND hwnd, UINT msg, WPARAM wparam, LP
|
||||
}
|
||||
|
||||
/* Ensure we exit from RedrawNow regardless of invalidated area */
|
||||
static void test_redrawnow() {
|
||||
static void test_redrawnow(void) {
|
||||
|
||||
WNDCLASSA cls;
|
||||
HWND hwndMain;
|
||||
|
@ -121,7 +121,7 @@ static DWORD CALLBACK SB_Poll( void *dummy )
|
||||
return 0;
|
||||
}
|
||||
|
||||
BOOL SB_Init()
|
||||
BOOL SB_Init(void)
|
||||
{
|
||||
HRESULT result;
|
||||
|
||||
@ -191,7 +191,7 @@ BOOL SB_Init()
|
||||
return 1;
|
||||
}
|
||||
|
||||
void SB_Reset()
|
||||
void SB_Reset(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -35,7 +35,7 @@
|
||||
|
||||
static TIMECAPS tc;
|
||||
|
||||
static void test_timeGetDevCaps()
|
||||
static void test_timeGetDevCaps(void)
|
||||
{
|
||||
MMRESULT rc;
|
||||
|
||||
@ -169,7 +169,7 @@ void CALLBACK priorityTimeProc(UINT uID, UINT uMsg, DWORD dwUser, DWORD dw1, DWO
|
||||
fired = TRUE;
|
||||
}
|
||||
|
||||
void test_priority()
|
||||
void test_priority(void)
|
||||
{
|
||||
UINT id;
|
||||
|
||||
|
@ -1030,7 +1030,7 @@ static void wave_out_test_device(int device)
|
||||
dev_name(device));
|
||||
}
|
||||
|
||||
static void wave_out_tests()
|
||||
static void wave_out_tests(void)
|
||||
{
|
||||
WAVEOUTCAPSA capsA;
|
||||
WAVEOUTCAPSW capsW;
|
||||
|
@ -781,7 +781,7 @@ LINGER linger_testvals[] = {
|
||||
bug in the linux kernel (fixed in 2.6.8) */
|
||||
#define SOCKTIMEOUT2 997000 /* 997 seconds */
|
||||
|
||||
static void test_set_getsockopt()
|
||||
static void test_set_getsockopt(void)
|
||||
{
|
||||
SOCKET s;
|
||||
int i, err;
|
||||
@ -826,7 +826,7 @@ static void test_set_getsockopt()
|
||||
closesocket(s);
|
||||
}
|
||||
|
||||
static void test_so_reuseaddr()
|
||||
static void test_so_reuseaddr(void)
|
||||
{
|
||||
struct sockaddr_in saddr;
|
||||
SOCKET s1,s2;
|
||||
@ -940,7 +940,7 @@ static test_setup tests [NUM_TESTS] =
|
||||
}
|
||||
};
|
||||
|
||||
static void test_UDP()
|
||||
static void test_UDP(void)
|
||||
{
|
||||
/* This function tests UDP sendto() and recvfrom(). UDP is unreliable, so it is
|
||||
possible that this test fails due to dropped packets. */
|
||||
@ -1018,7 +1018,7 @@ static void WINAPI do_getservbyname( HANDLE *starttest )
|
||||
}
|
||||
}
|
||||
|
||||
static void test_getservbyname()
|
||||
static void test_getservbyname(void)
|
||||
{
|
||||
int i;
|
||||
HANDLE starttest, thread[NUM_THREADS];
|
||||
@ -1039,7 +1039,7 @@ static void test_getservbyname()
|
||||
}
|
||||
}
|
||||
|
||||
static void test_WSAAddressToStringA()
|
||||
static void test_WSAAddressToStringA(void)
|
||||
{
|
||||
INT ret;
|
||||
DWORD len;
|
||||
@ -1106,7 +1106,7 @@ static void test_WSAAddressToStringA()
|
||||
ok( !strcmp( address, expect4 ), "Expected: %s, got: %s\n", expect4, address );
|
||||
}
|
||||
|
||||
static void test_WSAAddressToStringW()
|
||||
static void test_WSAAddressToStringW(void)
|
||||
{
|
||||
INT ret;
|
||||
DWORD len;
|
||||
@ -1174,7 +1174,7 @@ static void test_WSAAddressToStringW()
|
||||
ok( !lstrcmpW( address, expect4 ), "Expected different address string\n" );
|
||||
}
|
||||
|
||||
static void test_WSAStringToAddressA()
|
||||
static void test_WSAStringToAddressA(void)
|
||||
{
|
||||
INT ret, len;
|
||||
SOCKADDR_IN sockaddr;
|
||||
@ -1227,7 +1227,7 @@ static void test_WSAStringToAddressA()
|
||||
ok( ret, "WSAStringToAddressA() succeeded unexpectedly: %d\n", WSAGetLastError() );
|
||||
}
|
||||
|
||||
static void test_WSAStringToAddressW()
|
||||
static void test_WSAStringToAddressW(void)
|
||||
{
|
||||
INT ret, len;
|
||||
SOCKADDR_IN sockaddr;
|
||||
|
@ -44,7 +44,7 @@ UINT (*pWTInfoA)(UINT wCategory, UINT nIndex, LPVOID lpOutput) = NULL;
|
||||
static LRESULT WINAPI TABLET_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam,
|
||||
LPARAM lParam);
|
||||
|
||||
static VOID TABLET_Register()
|
||||
static VOID TABLET_Register(void)
|
||||
{
|
||||
WNDCLASSW wndClass;
|
||||
ZeroMemory(&wndClass, sizeof(WNDCLASSW));
|
||||
@ -58,7 +58,7 @@ static VOID TABLET_Register()
|
||||
RegisterClassW(&wndClass);
|
||||
}
|
||||
|
||||
static VOID TABLET_Unregister()
|
||||
static VOID TABLET_Unregister(void)
|
||||
{
|
||||
UnregisterClassW(WC_TABLETCLASSNAME, NULL);
|
||||
}
|
||||
|
@ -71,7 +71,7 @@ static VOID (WINAPI *pImmNotifyIME)(HIMC, DWORD, DWORD, DWORD);
|
||||
/*
|
||||
* here are the functions that sort of marshall calls into IMM32.DLL
|
||||
*/
|
||||
static void LoadImmDll()
|
||||
static void LoadImmDll(void)
|
||||
{
|
||||
hImmDll = LoadLibraryA("imm32.dll");
|
||||
|
||||
|
@ -166,7 +166,7 @@ typedef struct {
|
||||
static void read_directory(Entry* dir, LPCTSTR path, SORT_ORDER sortOrder, HWND hwnd);
|
||||
static void set_curdir(ChildWnd* child, Entry* entry, int idx, HWND hwnd);
|
||||
static void refresh_child(ChildWnd* child);
|
||||
static void refresh_drives();
|
||||
static void refresh_drives(void);
|
||||
static void get_path(Entry* dir, PTSTR path);
|
||||
static void format_date(const FILETIME* ft, TCHAR* buffer, int visible_cols);
|
||||
|
||||
@ -240,7 +240,7 @@ static void display_network_error(HWND hwnd)
|
||||
|
||||
|
||||
/* allocate and initialise a directory entry */
|
||||
static Entry* alloc_entry()
|
||||
static Entry* alloc_entry(void)
|
||||
{
|
||||
Entry* entry = (Entry*) malloc(sizeof(Entry));
|
||||
|
||||
@ -3979,7 +3979,7 @@ static BOOL prompt_target(Pane* pane, LPTSTR source, LPTSTR target)
|
||||
static IContextMenu2* s_pctxmenu2 = NULL;
|
||||
static IContextMenu3* s_pctxmenu3 = NULL;
|
||||
|
||||
static void CtxMenu_reset()
|
||||
static void CtxMenu_reset(void)
|
||||
{
|
||||
s_pctxmenu2 = NULL;
|
||||
s_pctxmenu3 = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user