Magnus Lundborg : wordpad:
Declare three functions as static to avoid compiler warnings.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jun 5 14:24:43 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 80e5f27b30236ea86b1e2db5d5257f4b7466c58f
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=80e5f27b30236ea86b1e2db5d5257f4b7466c58f
Author: Magnus Lundborg <magnus.lundborg.6955 at student.uu.se>
Date: Mon Jun 5 12:10:40 2006 +0200
wordpad: Declare three functions as static to avoid compiler warnings.
---
programs/wordpad/wordpad.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/programs/wordpad/wordpad.c b/programs/wordpad/wordpad.c
index 7392b9c..0abe457 100644
--- a/programs/wordpad/wordpad.c
+++ b/programs/wordpad/wordpad.c
@@ -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-cvs
mailing list