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

This commit is contained in:
Stefan Huehner 2006-08-18 20:57:46 +02:00 committed by Alexandre Julliard
parent 21b94d4cf4
commit 998e256c82
11 changed files with 16 additions and 16 deletions

View File

@ -419,7 +419,7 @@ static BOOL check_reg_dword(HKEY hkey, LPCSTR name, DWORD value)
return (check == value);
}
static void setperusersecvalues_test()
static void setperusersecvalues_test(void)
{
PERUSERSECTION peruser;
HRESULT hr;

View File

@ -127,7 +127,7 @@ static BOOL check_ini_contents(LPSTR filename, BOOL add)
return ret;
}
static void test_AddDelBackupEntry()
static void test_AddDelBackupEntry(void)
{
HRESULT res;
CHAR path[MAX_PATH];

View File

@ -56,7 +56,7 @@ static void dont_expect_notify(INT iCode)
unexpectedNotify[nUnexpectedNotify++] = iCode;
}
static BOOL notifies_received()
static BOOL notifies_received(void)
{
BOOL fRet = (nExpectedNotify == nReceivedNotify);
nExpectedNotify = nReceivedNotify = 0;
@ -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 */
}
static void check_mask()
static void check_mask(void)
{
HDITEMA hdi;
static CHAR text[] = "ABC";

View File

@ -220,7 +220,7 @@ static void LightTest(void)
ok(rc==DDERR_INVALIDPARAMS, "GetLightEnable returned: %lx\n", rc);
}
static void ProcessVerticesTest()
static void ProcessVerticesTest(void)
{
D3DVERTEXBUFFERDESC desc;
HRESULT rc;

View File

@ -246,7 +246,7 @@ TW_UINT16 GPHOTO2_RGBResponseSet
(pTW_IDENTITY pOrigin, TW_MEMREF pData);
/* UI function */
BOOL DoCameraUI();
BOOL DoCameraUI(void);
HWND TransferringDialogBox(HWND dialog, DWORD progress);
#ifdef HAVE_GPHOTO2

View File

@ -226,7 +226,7 @@ static INT_PTR CALLBACK DialogProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
return FALSE;
}
BOOL DoCameraUI()
BOOL DoCameraUI(void)
{
return DialogBoxW(GPHOTO2_instance,
(LPWSTR)MAKEINTRESOURCE(IDD_CAMERAUI),NULL, DialogProc);

View File

@ -455,7 +455,7 @@ static void test_EM_SETTEXTMODE(void)
DestroyWindow(hwndRichEdit);
}
static void test_TM_PLAINTEXT()
static void test_TM_PLAINTEXT(void)
{
/*Tests plain text properties*/
@ -557,7 +557,7 @@ static void test_TM_PLAINTEXT()
DestroyWindow(hwndRichEdit);
}
static void test_WM_GETTEXT()
static void test_WM_GETTEXT(void)
{
HWND hwndRichEdit = new_richedit(NULL);
static const char text[] = "Hello. My name is RichEdit!";
@ -572,7 +572,7 @@ static void test_WM_GETTEXT()
}
/* 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);
static const char text[] = "Hello. My name is RichEdit!";
@ -675,7 +675,7 @@ static void test_EM_AUTOURLDETECT(void)
DestroyWindow(parent);
}
static void test_EM_SCROLL()
static void test_EM_SCROLL(void)
{
int i, j;
int r; /* return value */
@ -810,7 +810,7 @@ static void test_EM_SCROLL()
DestroyWindow(hwndRichEdit);
}
static void test_EM_SETUNDOLIMIT()
static void test_EM_SETUNDOLIMIT(void)
{
/* cases we test for:
* default behaviour - limiting at 100 undo's

View File

@ -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 ch;

View File

@ -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 void
detect_sane_devices() {
detect_sane_devices(void) {
if (sane_devlist && sane_devlist[0]) return;
TRACE("detecting sane...\n");
if (sane_get_devices (&sane_devlist, SANE_FALSE) != SANE_STATUS_GOOD)

View File

@ -2010,7 +2010,7 @@ static inline BOOL _SHAppendToUnixPath(char *szBasePath, LPCWSTR pwszSubPath) {
* exists and left alone if not.
* ('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;
int acsidlMyStuff[] = { CSIDL_MYPICTURES, CSIDL_MYVIDEO, CSIDL_MYMUSIC };

View File

@ -98,7 +98,7 @@ twain_add_onedriver(const char *dsname) {
static int detectionrun = 0;
static void
twain_autodetect() {
twain_autodetect(void) {
if (detectionrun) return;
detectionrun = 1;