Wordpad.c: Static functions to avoid compiler warnings

Magnus Lundborg magnus.lundborg.6955 at student.uu.se
Mon Jun 5 05:10:40 CDT 2006


Hello,
This is my second attempt at making a patch to remove some compiler 
warnings (my first was obsolete due to me not updating against the CVS). 
This is just a small change to see if I'm on the right track. In case 
this patch is accepted I might start working on removing more warnings.

Best Wishes
/Magnus
-------------- next part --------------
2006-06-05  Magnus Lundborg <magnus.lundborg.6955 at student.uu.se>

	* programs/wordpad/wordpad.c:
	Declared three functions as static to avoid compiler warnings.
-------------- next part --------------
? makelog.txt
? patch.diff
Index: programs/wordpad/wordpad.c
===================================================================
RCS file: /home/wine/wine/programs/wordpad/wordpad.c,v
retrieving revision 1.3
diff -u -u -p -r1.3 wordpad.c
--- programs/wordpad/wordpad.c	31 May 2006 10:32:27 -0000	1.3
+++ programs/wordpad/wordpad.c	5 Jun 2006 10:02:02 -0000
@@ -43,7 +43,7 @@ static const WCHAR wszAppTitle[] = {'W',
 
 static HWND hMainWnd = NULL;
 
-void AddButton(HWND hwndToolBar, int nImage, int nCommand)
+static void AddButton(HWND hwndToolBar, int nImage, int nCommand)
 {
     TBBUTTON button;
 
@@ -57,7 +57,7 @@ void AddButton(HWND hwndToolBar, int nIm
     SendMessage(hwndToolBar, TB_ADDBUTTONS, 1, (LPARAM)&button);
 }
 
-void AddSeparator(HWND hwndToolBar)
+static void AddSeparator(HWND hwndToolBar)
 {
     TBBUTTON button;
 
@@ -435,7 +435,7 @@ static LRESULT OnSize( HWND hWnd, WPARAM
     return DefWindowProcW(hWnd, WM_SIZE, wParam, lParam);
 }
 
-LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
+static LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
 {
     switch(msg)
     {


More information about the wine-patches mailing list