Stefan Huehner : Fix some -Wstrict-prototype warnings () -> (void).
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Aug 21 05:58:41 CDT 2006
Module: wine
Branch: master
Commit: 998e256c82158e84f521f8d2443bd8eab9f03104
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=998e256c82158e84f521f8d2443bd8eab9f03104
Author: Stefan Huehner <stefan at huehner.org>
Date: Fri Aug 18 20:57:46 2006 +0200
Fix some -Wstrict-prototype warnings () -> (void).
---
dlls/advpack/tests/advpack.c | 2 +-
dlls/advpack/tests/files.c | 2 +-
dlls/comctl32/tests/header.c | 4 ++--
dlls/ddraw/tests/d3d.c | 2 +-
dlls/gphoto2.ds/gphoto2_i.h | 2 +-
dlls/gphoto2.ds/ui.c | 2 +-
dlls/riched20/tests/editor.c | 10 +++++-----
dlls/rpcrt4/tests/ndr_marshall.c | 2 +-
dlls/sane.ds/sane_main.c | 2 +-
dlls/shell32/shellpath.c | 2 +-
dlls/twain_32/dsm_ctrl.c | 2 +-
11 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/dlls/advpack/tests/advpack.c b/dlls/advpack/tests/advpack.c
index c178268..b747e76 100644
--- a/dlls/advpack/tests/advpack.c
+++ b/dlls/advpack/tests/advpack.c
@@ -419,7 +419,7 @@ static BOOL check_reg_dword(HKEY hkey, L
return (check == value);
}
-static void setperusersecvalues_test()
+static void setperusersecvalues_test(void)
{
PERUSERSECTION peruser;
HRESULT hr;
diff --git a/dlls/advpack/tests/files.c b/dlls/advpack/tests/files.c
index 1ef76c8..6699617 100644
--- a/dlls/advpack/tests/files.c
+++ b/dlls/advpack/tests/files.c
@@ -127,7 +127,7 @@ static BOOL check_ini_contents(LPSTR fil
return ret;
}
-static void test_AddDelBackupEntry()
+static void test_AddDelBackupEntry(void)
{
HRESULT res;
CHAR path[MAX_PATH];
diff --git a/dlls/comctl32/tests/header.c b/dlls/comctl32/tests/header.c
index 65038ce..0084a71 100644
--- a/dlls/comctl32/tests/header.c
+++ b/dlls/comctl32/tests/header.c
@@ -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";
diff --git a/dlls/ddraw/tests/d3d.c b/dlls/ddraw/tests/d3d.c
index e029382..0409dce 100644
--- a/dlls/ddraw/tests/d3d.c
+++ b/dlls/ddraw/tests/d3d.c
@@ -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;
diff --git a/dlls/gphoto2.ds/gphoto2_i.h b/dlls/gphoto2.ds/gphoto2_i.h
index 592ee53..3e91d6c 100644
--- a/dlls/gphoto2.ds/gphoto2_i.h
+++ b/dlls/gphoto2.ds/gphoto2_i.h
@@ -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
diff --git a/dlls/gphoto2.ds/ui.c b/dlls/gphoto2.ds/ui.c
index 1851270..88fa8fa 100644
--- a/dlls/gphoto2.ds/ui.c
+++ b/dlls/gphoto2.ds/ui.c
@@ -226,7 +226,7 @@ static INT_PTR CALLBACK DialogProc(HWND
return FALSE;
}
-BOOL DoCameraUI()
+BOOL DoCameraUI(void)
{
return DialogBoxW(GPHOTO2_instance,
(LPWSTR)MAKEINTRESOURCE(IDD_CAMERAUI),NULL, DialogProc);
diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c
index 1e378dd..e9a7550 100644
--- a/dlls/riched20/tests/editor.c
+++ b/dlls/riched20/tests/editor.c
@@ -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
diff --git a/dlls/rpcrt4/tests/ndr_marshall.c b/dlls/rpcrt4/tests/ndr_marshall.c
index b4184b3..3d1a5d0 100644
--- a/dlls/rpcrt4/tests/ndr_marshall.c
+++ b/dlls/rpcrt4/tests/ndr_marshall.c
@@ -228,7 +228,7 @@ static int deref_cmp(const void *s1, con
}
-static void test_simple_types()
+static void test_simple_types(void)
{
unsigned char wiredata[16];
unsigned char ch;
diff --git a/dlls/sane.ds/sane_main.c b/dlls/sane.ds/sane_main.c
index a20a4ae..0afedd7 100644
--- a/dlls/sane.ds/sane_main.c
+++ b/dlls/sane.ds/sane_main.c
@@ -540,7 +540,7 @@ static void copy_sane_short_name(const c
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)
diff --git a/dlls/shell32/shellpath.c b/dlls/shell32/shellpath.c
index a0d8152..ddaedc8 100644
--- a/dlls/shell32/shellpath.c
+++ b/dlls/shell32/shellpath.c
@@ -2010,7 +2010,7 @@ static inline BOOL _SHAppendToUnixPath(c
* 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 };
diff --git a/dlls/twain_32/dsm_ctrl.c b/dlls/twain_32/dsm_ctrl.c
index 18edfab..60928e7 100644
--- a/dlls/twain_32/dsm_ctrl.c
+++ b/dlls/twain_32/dsm_ctrl.c
@@ -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;
More information about the wine-cvs
mailing list