fix some -Wstrict-prototype warnings () -> (void)

Stefan Huehner stefan at huehner.org
Fri Aug 18 13:57:46 CDT 2006


Hi,

attached patch changes some function declarations without parameters to
the correct (void) form.

Regards,
Stefan

-------------- next part --------------
diff --git a/dlls/advpack/tests/advpack.c b/dlls/advpack/tests/advpack.c
index 084d62c..783ea59 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-patches mailing list