Commit 998e256c authored by Stefan Huehner's avatar Stefan Huehner Committed by Alexandre Julliard

Fix some -Wstrict-prototype warnings () -> (void).

parent 21b94d4c
...@@ -419,7 +419,7 @@ static BOOL check_reg_dword(HKEY hkey, LPCSTR name, DWORD value) ...@@ -419,7 +419,7 @@ static BOOL check_reg_dword(HKEY hkey, LPCSTR name, DWORD value)
return (check == value); return (check == value);
} }
static void setperusersecvalues_test() static void setperusersecvalues_test(void)
{ {
PERUSERSECTION peruser; PERUSERSECTION peruser;
HRESULT hr; HRESULT hr;
......
...@@ -127,7 +127,7 @@ static BOOL check_ini_contents(LPSTR filename, BOOL add) ...@@ -127,7 +127,7 @@ static BOOL check_ini_contents(LPSTR filename, BOOL add)
return ret; return ret;
} }
static void test_AddDelBackupEntry() static void test_AddDelBackupEntry(void)
{ {
HRESULT res; HRESULT res;
CHAR path[MAX_PATH]; CHAR path[MAX_PATH];
......
...@@ -56,7 +56,7 @@ static void dont_expect_notify(INT iCode) ...@@ -56,7 +56,7 @@ static void dont_expect_notify(INT iCode)
unexpectedNotify[nUnexpectedNotify++] = iCode; unexpectedNotify[nUnexpectedNotify++] = iCode;
} }
static BOOL notifies_received() static BOOL notifies_received(void)
{ {
BOOL fRet = (nExpectedNotify == nReceivedNotify); BOOL fRet = (nExpectedNotify == nReceivedNotify);
nExpectedNotify = nReceivedNotify = 0; nExpectedNotify = nReceivedNotify = 0;
...@@ -323,7 +323,7 @@ static void check_auto_fields(void) ...@@ -323,7 +323,7 @@ static void check_auto_fields(void)
/* field from comctl >4.0 not tested as the system probably won't touch them */ /* field from comctl >4.0 not tested as the system probably won't touch them */
} }
static void check_mask() static void check_mask(void)
{ {
HDITEMA hdi; HDITEMA hdi;
static CHAR text[] = "ABC"; static CHAR text[] = "ABC";
......
...@@ -220,7 +220,7 @@ static void LightTest(void) ...@@ -220,7 +220,7 @@ static void LightTest(void)
ok(rc==DDERR_INVALIDPARAMS, "GetLightEnable returned: %lx\n", rc); ok(rc==DDERR_INVALIDPARAMS, "GetLightEnable returned: %lx\n", rc);
} }
static void ProcessVerticesTest() static void ProcessVerticesTest(void)
{ {
D3DVERTEXBUFFERDESC desc; D3DVERTEXBUFFERDESC desc;
HRESULT rc; HRESULT rc;
......
...@@ -246,7 +246,7 @@ TW_UINT16 GPHOTO2_RGBResponseSet ...@@ -246,7 +246,7 @@ TW_UINT16 GPHOTO2_RGBResponseSet
(pTW_IDENTITY pOrigin, TW_MEMREF pData); (pTW_IDENTITY pOrigin, TW_MEMREF pData);
/* UI function */ /* UI function */
BOOL DoCameraUI(); BOOL DoCameraUI(void);
HWND TransferringDialogBox(HWND dialog, DWORD progress); HWND TransferringDialogBox(HWND dialog, DWORD progress);
#ifdef HAVE_GPHOTO2 #ifdef HAVE_GPHOTO2
......
...@@ -226,7 +226,7 @@ static INT_PTR CALLBACK DialogProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP ...@@ -226,7 +226,7 @@ static INT_PTR CALLBACK DialogProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
return FALSE; return FALSE;
} }
BOOL DoCameraUI() BOOL DoCameraUI(void)
{ {
return DialogBoxW(GPHOTO2_instance, return DialogBoxW(GPHOTO2_instance,
(LPWSTR)MAKEINTRESOURCE(IDD_CAMERAUI),NULL, DialogProc); (LPWSTR)MAKEINTRESOURCE(IDD_CAMERAUI),NULL, DialogProc);
......
...@@ -455,7 +455,7 @@ static void test_EM_SETTEXTMODE(void) ...@@ -455,7 +455,7 @@ static void test_EM_SETTEXTMODE(void)
DestroyWindow(hwndRichEdit); DestroyWindow(hwndRichEdit);
} }
static void test_TM_PLAINTEXT() static void test_TM_PLAINTEXT(void)
{ {
/*Tests plain text properties*/ /*Tests plain text properties*/
...@@ -557,7 +557,7 @@ static void test_TM_PLAINTEXT() ...@@ -557,7 +557,7 @@ static void test_TM_PLAINTEXT()
DestroyWindow(hwndRichEdit); DestroyWindow(hwndRichEdit);
} }
static void test_WM_GETTEXT() static void test_WM_GETTEXT(void)
{ {
HWND hwndRichEdit = new_richedit(NULL); HWND hwndRichEdit = new_richedit(NULL);
static const char text[] = "Hello. My name is RichEdit!"; static const char text[] = "Hello. My name is RichEdit!";
...@@ -572,7 +572,7 @@ static void test_WM_GETTEXT() ...@@ -572,7 +572,7 @@ static void test_WM_GETTEXT()
} }
/* FIXME: need to test unimplemented options and robustly test wparam */ /* FIXME: need to test unimplemented options and robustly test wparam */
static void test_EM_SETOPTIONS() static void test_EM_SETOPTIONS(void)
{ {
HWND hwndRichEdit = new_richedit(NULL); HWND hwndRichEdit = new_richedit(NULL);
static const char text[] = "Hello. My name is RichEdit!"; static const char text[] = "Hello. My name is RichEdit!";
...@@ -675,7 +675,7 @@ static void test_EM_AUTOURLDETECT(void) ...@@ -675,7 +675,7 @@ static void test_EM_AUTOURLDETECT(void)
DestroyWindow(parent); DestroyWindow(parent);
} }
static void test_EM_SCROLL() static void test_EM_SCROLL(void)
{ {
int i, j; int i, j;
int r; /* return value */ int r; /* return value */
...@@ -810,7 +810,7 @@ static void test_EM_SCROLL() ...@@ -810,7 +810,7 @@ static void test_EM_SCROLL()
DestroyWindow(hwndRichEdit); DestroyWindow(hwndRichEdit);
} }
static void test_EM_SETUNDOLIMIT() static void test_EM_SETUNDOLIMIT(void)
{ {
/* cases we test for: /* cases we test for:
* default behaviour - limiting at 100 undo's * default behaviour - limiting at 100 undo's
......
...@@ -228,7 +228,7 @@ static int deref_cmp(const void *s1, const void *s2, size_t num) ...@@ -228,7 +228,7 @@ static int deref_cmp(const void *s1, const void *s2, size_t num)
} }
static void test_simple_types() static void test_simple_types(void)
{ {
unsigned char wiredata[16]; unsigned char wiredata[16];
unsigned char ch; unsigned char ch;
......
...@@ -540,7 +540,7 @@ static void copy_sane_short_name(const char *in, char *out, size_t outsize) ...@@ -540,7 +540,7 @@ static void copy_sane_short_name(const char *in, char *out, size_t outsize)
static const SANE_Device **sane_devlist; static const SANE_Device **sane_devlist;
static void static void
detect_sane_devices() { detect_sane_devices(void) {
if (sane_devlist && sane_devlist[0]) return; if (sane_devlist && sane_devlist[0]) return;
TRACE("detecting sane...\n"); TRACE("detecting sane...\n");
if (sane_get_devices (&sane_devlist, SANE_FALSE) != SANE_STATUS_GOOD) if (sane_get_devices (&sane_devlist, SANE_FALSE) != SANE_STATUS_GOOD)
......
...@@ -2010,7 +2010,7 @@ static inline BOOL _SHAppendToUnixPath(char *szBasePath, LPCWSTR pwszSubPath) { ...@@ -2010,7 +2010,7 @@ static inline BOOL _SHAppendToUnixPath(char *szBasePath, LPCWSTR pwszSubPath) {
* exists and left alone if not. * exists and left alone if not.
* ('My Music',... above in fact means LoadString(IDS_MYMUSIC)) * ('My Music',... above in fact means LoadString(IDS_MYMUSIC))
*/ */
static void _SHCreateSymbolicLinks() static void _SHCreateSymbolicLinks(void)
{ {
UINT aidsMyStuff[] = { IDS_MYPICTURES, IDS_MYVIDEO, IDS_MYMUSIC }, i; UINT aidsMyStuff[] = { IDS_MYPICTURES, IDS_MYVIDEO, IDS_MYMUSIC }, i;
int acsidlMyStuff[] = { CSIDL_MYPICTURES, CSIDL_MYVIDEO, CSIDL_MYMUSIC }; int acsidlMyStuff[] = { CSIDL_MYPICTURES, CSIDL_MYVIDEO, CSIDL_MYMUSIC };
......
...@@ -98,7 +98,7 @@ twain_add_onedriver(const char *dsname) { ...@@ -98,7 +98,7 @@ twain_add_onedriver(const char *dsname) {
static int detectionrun = 0; static int detectionrun = 0;
static void static void
twain_autodetect() { twain_autodetect(void) {
if (detectionrun) return; if (detectionrun) return;
detectionrun = 1; detectionrun = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment