fix more -Wmissing-declaration warnings

Stefan Huehner stefan at huehner.org
Mon Jul 4 09:36:03 CDT 2005


Hi,

next patch which make functions static which aren't used outside its
source file.

ChangeLog:
- fix -Wmissing-declarations warnings

Regards,
Stefan
-------------- next part --------------
Index: dlls/dplayx/dplay.c
===================================================================
RCS file: /home/wine/wine/dlls/dplayx/dplay.c,v
retrieving revision 1.59
diff -u -p -r1.59 dplay.c
--- dlls/dplayx/dplay.c	1 Jun 2005 19:57:42 -0000	1.59
+++ dlls/dplayx/dplay.c	4 Jul 2005 14:27:25 -0000
@@ -3953,7 +3953,7 @@ static HRESULT WINAPI DirectPlay3WImpl_G
   return DP_OK;
 }
 
-BOOL CALLBACK DP_GetSpLpGuidFromCompoundAddress(
+static BOOL CALLBACK DP_GetSpLpGuidFromCompoundAddress(
     REFGUID         guidDataType,
     DWORD           dwDataSize,
     LPCVOID         lpData,
Index: dlls/dplayx/dplayx_global.c
===================================================================
RCS file: /home/wine/wine/dlls/dplayx/dplayx_global.c,v
retrieving revision 1.25
diff -u -p -r1.25 dplayx_global.c
--- dlls/dplayx/dplayx_global.c	24 Mar 2005 21:01:39 -0000	1.25
+++ dlls/dplayx/dplayx_global.c	4 Jul 2005 14:27:25 -0000
@@ -1061,7 +1061,7 @@ DWORD DPLAYX_SizeOfLobbyDataW( LPDPLCONN
 
 
 
-LPDPSESSIONDESC2 DPLAYX_CopyAndAllocateSessionDesc2A( LPCDPSESSIONDESC2 lpSessionSrc )
+static LPDPSESSIONDESC2 DPLAYX_CopyAndAllocateSessionDesc2A( LPCDPSESSIONDESC2 lpSessionSrc )
 {
    LPDPSESSIONDESC2 lpSessionDest =
      HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof( *lpSessionSrc ) );
Index: dlls/dplayx/name_server.c
===================================================================
RCS file: /home/wine/wine/dlls/dplayx/name_server.c,v
retrieving revision 1.18
diff -u -p -r1.18 name_server.c
--- dlls/dplayx/name_server.c	24 Mar 2005 21:01:39 -0000	1.18
+++ dlls/dplayx/name_server.c	4 Jul 2005 14:27:25 -0000
@@ -90,7 +90,7 @@ void NS_SetRemoteComputerAsNameServer( L
   lpCache->bNsIsLocal = FALSE;
 }
 
-DPQ_DECL_COMPARECB( cbUglyPig, GUID )
+static DPQ_DECL_COMPARECB( cbUglyPig, GUID )
 {
   return IsEqualGUID( elem1, elem2 );
 }
-------------- next part --------------
Index: dlls/gdi/enhmetafile.c
===================================================================
RCS file: /home/wine/wine/dlls/gdi/enhmetafile.c,v
retrieving revision 1.12
diff -u -p -r1.12 enhmetafile.c
--- dlls/gdi/enhmetafile.c	13 Apr 2005 10:57:59 -0000	1.12
+++ dlls/gdi/enhmetafile.c	4 Jul 2005 14:10:49 -0000
@@ -510,7 +510,7 @@ typedef struct enum_emh_data
 
 #define IS_WIN9X() (GetVersion()&0x80000000)
 
-void EMF_Update_MF_Xform(HDC hdc, enum_emh_data *info)
+static void EMF_Update_MF_Xform(HDC hdc, enum_emh_data *info)
 {
     XFORM mapping_mode_trans, final_trans;
     FLOAT scaleX, scaleY;
@@ -533,7 +533,7 @@ void EMF_Update_MF_Xform(HDC hdc, enum_e
     }
 }
 
-void EMF_SetMapMode(HDC hdc, enum_emh_data *info)
+static void EMF_SetMapMode(HDC hdc, enum_emh_data *info)
 {
     INT horzSize = GetDeviceCaps( hdc, HORZSIZE );
     INT vertSize = GetDeviceCaps( hdc, VERTSIZE );
@@ -2434,7 +2434,7 @@ typedef struct tagEMF_PaletteCopy
  *
  * NOTE: To be used by GetEnhMetaFilePaletteEntries only!
  */
-INT CALLBACK cbEnhPaletteCopy( HDC a,
+static INT CALLBACK cbEnhPaletteCopy( HDC a,
                                HANDLETABLE *b,
                                const ENHMETARECORD *lpEMR,
                                INT c,
-------------- next part --------------
Index: dlls/msvidc32/msvideo1.c
===================================================================
RCS file: /home/wine/wine/dlls/msvidc32/msvideo1.c,v
retrieving revision 1.4
diff -u -p -r1.4 msvideo1.c
--- dlls/msvidc32/msvideo1.c	20 Feb 2004 20:19:23 -0000	1.4
+++ dlls/msvidc32/msvideo1.c	4 Jul 2005 14:22:47 -0000
@@ -369,7 +369,7 @@ CRAM_DecompressGetFormat( Msvideo1Contex
     return size;
 }
 
-LRESULT CRAM_DecompressBegin( Msvideo1Context *info, LPBITMAPINFO in, LPBITMAPINFO out )
+static LRESULT CRAM_DecompressBegin( Msvideo1Context *info, LPBITMAPINFO in, LPBITMAPINFO out )
 {
     TRACE("ICM_DECOMPRESS_BEGIN %p %p %p\n", info, in, out);
 
@@ -390,7 +390,7 @@ LRESULT CRAM_DecompressBegin( Msvideo1Co
     return ICERR_OK;
 }
 
-LRESULT CRAM_Decompress( Msvideo1Context *info, ICDECOMPRESS *icd, DWORD size )
+static LRESULT CRAM_Decompress( Msvideo1Context *info, ICDECOMPRESS *icd, DWORD size )
 {
     LONG width, height, stride, sz;
     WORD bit_per_pixel;
@@ -422,7 +422,7 @@ LRESULT CRAM_Decompress( Msvideo1Context
     return ICERR_OK;
 }
 
-LRESULT CRAM_DecompressEx( Msvideo1Context *info, ICDECOMPRESSEX *icd, DWORD size )
+static LRESULT CRAM_DecompressEx( Msvideo1Context *info, ICDECOMPRESSEX *icd, DWORD size )
 {
     LONG width, height, stride, sz;
     WORD bit_per_pixel;
-------------- next part --------------
Index: dlls/netapi32/access.c
===================================================================
RCS file: /home/wine/wine/dlls/netapi32/access.c,v
retrieving revision 1.8
diff -u -p -r1.8 access.c
--- dlls/netapi32/access.c	19 Apr 2004 20:12:14 -0000	1.8
+++ dlls/netapi32/access.c	4 Jul 2005 14:02:14 -0000
@@ -42,7 +42,7 @@ static const WCHAR sGuestUserName[] = {'
  *
  * Validates server name
  */
-NET_API_STATUS NETAPI_ValidateServername(LPCWSTR ServerName)
+static NET_API_STATUS NETAPI_ValidateServername(LPCWSTR ServerName)
 {
     if (ServerName)
     {
@@ -66,7 +66,7 @@ NET_API_STATUS NETAPI_ValidateServername
  *
  * Checks whether the user name indicates current user.
  */
-BOOL NETAPI_IsKnownUser(LPCWSTR UserName)
+static BOOL NETAPI_IsKnownUser(LPCWSTR UserName)
 {
     DWORD dwSize = UNLEN + 1;
     BOOL Result;
@@ -275,7 +275,7 @@ NetUserEnum(LPCWSTR servername, DWORD le
  *
  *  Creates a buffer with information for the Admin User
  */
-void ACCESS_QueryAdminDisplayInformation(PNET_DISPLAY_USER *buf, PDWORD pdwSize)
+static void ACCESS_QueryAdminDisplayInformation(PNET_DISPLAY_USER *buf, PDWORD pdwSize)
 {
     static const WCHAR sAdminUserName[] = {
         'A','d','m','i','n','i','s','t','r','a','t','o','r',0};
@@ -314,7 +314,7 @@ void ACCESS_QueryAdminDisplayInformation
  *
  *  Creates a buffer with information for the Guest User
  */
-void ACCESS_QueryGuestDisplayInformation(PNET_DISPLAY_USER *buf, PDWORD pdwSize)
+static void ACCESS_QueryGuestDisplayInformation(PNET_DISPLAY_USER *buf, PDWORD pdwSize)
 {
     static const WCHAR sGuestUserName[] = {
         'G','u','e','s','t',0 };
@@ -353,7 +353,7 @@ void ACCESS_QueryGuestDisplayInformation
  *                NetQueryDisplayInformation  (NETAPI32.@)
  * Copies NET_DISPLAY_USER record.
  */
-void ACCESS_CopyDisplayUser(PNET_DISPLAY_USER dest, LPWSTR *dest_buf,
+static void ACCESS_CopyDisplayUser(PNET_DISPLAY_USER dest, LPWSTR *dest_buf,
                             PNET_DISPLAY_USER src)
 {
     LPWSTR str = *dest_buf;
-------------- next part --------------
Index: dlls/riched20/editor.c
===================================================================
RCS file: /home/wine/wine/dlls/riched20/editor.c,v
retrieving revision 1.36
diff -u -p -r1.36 editor.c
--- dlls/riched20/editor.c	30 Jun 2005 18:10:22 -0000	1.36
+++ dlls/riched20/editor.c	4 Jul 2005 14:09:32 -0000
@@ -231,7 +231,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(richedit);
 int me_debug = 0;
 HANDLE me_heap = NULL;
 
-ME_TextBuffer *ME_MakeText(void) {
+static ME_TextBuffer *ME_MakeText(void) {
   
   ME_TextBuffer *buf = ALLOC_OBJ(ME_TextBuffer);
 
@@ -295,7 +295,7 @@ static LRESULT ME_StreamInText(ME_TextEd
   return 0;
 }
 
-void ME_RTFCharAttrHook(RTF_Info *info)
+static void ME_RTFCharAttrHook(RTF_Info *info)
 {
   CHARFORMAT2W fmt;
   fmt.cbSize = sizeof(fmt);
@@ -394,7 +394,7 @@ void ME_RTFCharAttrHook(RTF_Info *info)
 
 /* FIXME this function doesn't get any information about context of the RTF tag, which is very bad,
    the same tags mean different things in different contexts */
-void ME_RTFParAttrHook(RTF_Info *info)
+static void ME_RTFParAttrHook(RTF_Info *info)
 {
   PARAFORMAT2 fmt;
   fmt.cbSize = sizeof(fmt);
@@ -459,7 +459,7 @@ void ME_RTFParAttrHook(RTF_Info *info)
   }
 }
 
-void ME_RTFReadHook(RTF_Info *info) {
+static void ME_RTFReadHook(RTF_Info *info) {
   switch(info->rtfClass)
   {
     case rtfGroup:
-------------- next part --------------
Index: dlls/rpcrt4/ndr_ole.c
===================================================================
RCS file: /home/wine/wine/dlls/rpcrt4/ndr_ole.c,v
retrieving revision 1.14
diff -u -p -r1.14 ndr_ole.c
--- dlls/rpcrt4/ndr_ole.c	7 Jun 2005 20:07:06 -0000	1.14
+++ dlls/rpcrt4/ndr_ole.c	4 Jul 2005 14:30:03 -0000
@@ -223,7 +223,7 @@ static LPSTREAM RpcStream_Create(PMIDL_S
   return (LPSTREAM)This;
 }
 
-const IID* get_ip_iid(PMIDL_STUB_MESSAGE pStubMsg, unsigned char *pMemory, PFORMAT_STRING pFormat)
+static const IID* get_ip_iid(PMIDL_STUB_MESSAGE pStubMsg, unsigned char *pMemory, PFORMAT_STRING pFormat)
 {
   const IID *riid;
   if (!pFormat) return &IID_IUnknown;
-------------- next part --------------
Index: dlls/uxtheme/msstyles.c
===================================================================
RCS file: /home/wine/wine/dlls/uxtheme/msstyles.c,v
retrieving revision 1.13
diff -u -p -r1.13 msstyles.c
--- dlls/uxtheme/msstyles.c	1 Jul 2005 15:39:14 -0000	1.13
+++ dlls/uxtheme/msstyles.c	4 Jul 2005 14:20:12 -0000
@@ -253,7 +253,7 @@ PUXINI_FILE MSSTYLES_GetThemeIni(PTHEME_
  *
  * Retrieve the ini file for the selected color/style
  */
-PUXINI_FILE MSSTYLES_GetActiveThemeIni(PTHEME_FILE tf)
+static PUXINI_FILE MSSTYLES_GetActiveThemeIni(PTHEME_FILE tf)
 {
     static const WCHAR szFileResNamesResource[] = {
         'F','I','L','E','R','E','S','N','A','M','E','S','\0'
@@ -320,7 +320,7 @@ PUXINI_FILE MSSTYLES_GetActiveThemeIni(P
  *     iPartId             Location to store part id
  *     iStateId            Location to store state id
  */
-BOOL MSSTYLES_ParseIniSectionName(LPCWSTR lpSection, DWORD dwLen, LPWSTR szAppName, LPWSTR szClassName, int *iPartId, int *iStateId)
+static BOOL MSSTYLES_ParseIniSectionName(LPCWSTR lpSection, DWORD dwLen, LPWSTR szAppName, LPWSTR szClassName, int *iPartId, int *iStateId)
 {
     WCHAR sec[255];
     WCHAR part[60] = {'\0'};
@@ -423,7 +423,7 @@ PTHEME_CLASS MSSTYLES_FindClass(PTHEME_F
  * RETURNS
  *  The class added, or a class previously added with the same name
  */
-PTHEME_CLASS MSSTYLES_AddClass(PTHEME_FILE tf, LPCWSTR pszAppName, LPCWSTR pszClassName)
+static PTHEME_CLASS MSSTYLES_AddClass(PTHEME_FILE tf, LPCWSTR pszAppName, LPCWSTR pszClassName)
 {
     PTHEME_CLASS cur = MSSTYLES_FindClass(tf, pszAppName, pszClassName);
     if(cur) return cur;
@@ -480,7 +480,7 @@ PTHEME_PARTSTATE MSSTYLES_FindPartState(
  * RETURNS
  *  The part/state added, or a part/state previously added with the same IDs
  */
-PTHEME_PARTSTATE MSSTYLES_AddPartState(PTHEME_CLASS tc, int iPartId, int iStateId)
+static PTHEME_PARTSTATE MSSTYLES_AddPartState(PTHEME_CLASS tc, int iPartId, int iStateId)
 {
     PTHEME_PARTSTATE cur = MSSTYLES_FindPartState(tc, iPartId, iStateId, NULL);
     if(cur) return cur;
@@ -507,7 +507,7 @@ PTHEME_PARTSTATE MSSTYLES_AddPartState(P
  * RETURNS
  *  The property found, or NULL
  */
-PTHEME_PROPERTY MSSTYLES_LFindProperty(PTHEME_PROPERTY tp, int iPropertyPrimitive, int iPropertyId)
+static PTHEME_PROPERTY MSSTYLES_LFindProperty(PTHEME_PROPERTY tp, int iPropertyPrimitive, int iPropertyId)
 {
     PTHEME_PROPERTY cur = tp;
     while(cur) {
@@ -596,7 +596,7 @@ PTHEME_PROPERTY MSSTYLES_FindMetric(int 
  * RETURNS
  *  The property added, or a property previously added with the same IDs
  */
-PTHEME_PROPERTY MSSTYLES_AddProperty(PTHEME_PARTSTATE ps, int iPropertyPrimitive, int iPropertyId, LPCWSTR lpValue, DWORD dwValueLen, BOOL isGlobal)
+static PTHEME_PROPERTY MSSTYLES_AddProperty(PTHEME_PARTSTATE ps, int iPropertyPrimitive, int iPropertyId, LPCWSTR lpValue, DWORD dwValueLen, BOOL isGlobal)
 {
     PTHEME_PROPERTY cur = MSSTYLES_PSFindProperty(ps, iPropertyPrimitive, iPropertyId);
     /* Should duplicate properties overwrite the original, or be ignored? */
@@ -637,7 +637,7 @@ PTHEME_PROPERTY MSSTYLES_AddProperty(PTH
  * RETURNS
  *  The property added, or a property previously added with the same IDs
  */
-PTHEME_PROPERTY MSSTYLES_AddMetric(PTHEME_FILE tf, int iPropertyPrimitive, int iPropertyId, LPCWSTR lpValue, DWORD dwValueLen)
+static PTHEME_PROPERTY MSSTYLES_AddMetric(PTHEME_FILE tf, int iPropertyPrimitive, int iPropertyId, LPCWSTR lpValue, DWORD dwValueLen)
 {
     PTHEME_PROPERTY cur = MSSTYLES_FFindMetric(tf, iPropertyPrimitive, iPropertyId);
     /* Should duplicate properties overwrite the original, or be ignored? */


More information about the wine-patches mailing list