Warning fixes for -Wmissing-declarations and -Wwrite-strings.
This commit is contained in:
parent
f5c433fa68
commit
882bc4d18d
|
@ -191,4 +191,62 @@ BOOL WINAPI DPA_Merge (const HDPA, const HDPA, DWORD, PFNDPACOMPARE, PFNDPAMERGE
|
||||||
LRESULT WINAPI SetPathWordBreakProc(HWND hwnd, BOOL bSet);
|
LRESULT WINAPI SetPathWordBreakProc(HWND hwnd, BOOL bSet);
|
||||||
BOOL WINAPI MirrorIcon(HICON *phicon1, HICON *phicon2);
|
BOOL WINAPI MirrorIcon(HICON *phicon1, HICON *phicon2);
|
||||||
|
|
||||||
|
extern void ANIMATE_Register(void);
|
||||||
|
extern void ANIMATE_Unregister(void);
|
||||||
|
extern void COMBOEX_Register(void);
|
||||||
|
extern void COMBOEX_Unregister(void);
|
||||||
|
extern void DATETIME_Register(void);
|
||||||
|
extern void DATETIME_Unregister(void);
|
||||||
|
extern void FLATSB_Register(void);
|
||||||
|
extern void FLATSB_Unregister(void);
|
||||||
|
extern void HEADER_Register(void);
|
||||||
|
extern void HEADER_Unregister(void);
|
||||||
|
extern void HOTKEY_Register(void);
|
||||||
|
extern void HOTKEY_Unregister(void);
|
||||||
|
extern void IPADDRESS_Register(void);
|
||||||
|
extern void IPADDRESS_Unregister(void);
|
||||||
|
extern void LISTVIEW_Register(void);
|
||||||
|
extern void LISTVIEW_Unregister(void);
|
||||||
|
extern void MONTHCAL_Register(void);
|
||||||
|
extern void MONTHCAL_Unregister(void);
|
||||||
|
extern void NATIVEFONT_Register(void);
|
||||||
|
extern void NATIVEFONT_Unregister(void);
|
||||||
|
extern void PAGER_Register(void);
|
||||||
|
extern void PAGER_Unregister(void);
|
||||||
|
extern void PROGRESS_Register(void);
|
||||||
|
extern void PROGRESS_Unregister(void);
|
||||||
|
extern void REBAR_Register(void);
|
||||||
|
extern void REBAR_Unregister(void);
|
||||||
|
extern void STATUS_Register(void);
|
||||||
|
extern void STATUS_Unregister(void);
|
||||||
|
extern void SYSLINK_Register(void);
|
||||||
|
extern void SYSLINK_Unregister(void);
|
||||||
|
extern void TAB_Register(void);
|
||||||
|
extern void TAB_Unregister(void);
|
||||||
|
extern void TOOLBAR_Register(void);
|
||||||
|
extern void TOOLBAR_Unregister(void);
|
||||||
|
extern void TOOLTIPS_Register(void);
|
||||||
|
extern void TOOLTIPS_Unregister(void);
|
||||||
|
extern void TRACKBAR_Register(void);
|
||||||
|
extern void TRACKBAR_Unregister(void);
|
||||||
|
extern void TREEVIEW_Register(void);
|
||||||
|
extern void TREEVIEW_Unregister(void);
|
||||||
|
extern void UPDOWN_Register(void);
|
||||||
|
extern void UPDOWN_Unregister(void);
|
||||||
|
|
||||||
|
|
||||||
|
int MONTHCAL_MonthLength(int month, int year);
|
||||||
|
|
||||||
|
static inline void MONTHCAL_CopyTime(const SYSTEMTIME *from, SYSTEMTIME *to)
|
||||||
|
{
|
||||||
|
to->wYear = from->wYear;
|
||||||
|
to->wMonth = from->wMonth;
|
||||||
|
to->wDayOfWeek = from->wDayOfWeek;
|
||||||
|
to->wDay = from->wDay;
|
||||||
|
to->wHour = from->wHour;
|
||||||
|
to->wMinute = from->wMinute;
|
||||||
|
to->wSecond = from->wSecond;
|
||||||
|
to->wMilliseconds = from->wMilliseconds;
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* __WINE_COMCTL32_H */
|
#endif /* __WINE_COMCTL32_H */
|
||||||
|
|
|
@ -73,49 +73,6 @@
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(commctrl);
|
WINE_DEFAULT_DEBUG_CHANNEL(commctrl);
|
||||||
|
|
||||||
extern void ANIMATE_Register(void);
|
|
||||||
extern void ANIMATE_Unregister(void);
|
|
||||||
extern void COMBOEX_Register(void);
|
|
||||||
extern void COMBOEX_Unregister(void);
|
|
||||||
extern void DATETIME_Register(void);
|
|
||||||
extern void DATETIME_Unregister(void);
|
|
||||||
extern void FLATSB_Register(void);
|
|
||||||
extern void FLATSB_Unregister(void);
|
|
||||||
extern void HEADER_Register(void);
|
|
||||||
extern void HEADER_Unregister(void);
|
|
||||||
extern void HOTKEY_Register(void);
|
|
||||||
extern void HOTKEY_Unregister(void);
|
|
||||||
extern void IPADDRESS_Register(void);
|
|
||||||
extern void IPADDRESS_Unregister(void);
|
|
||||||
extern void LISTVIEW_Register(void);
|
|
||||||
extern void LISTVIEW_Unregister(void);
|
|
||||||
extern void MONTHCAL_Register(void);
|
|
||||||
extern void MONTHCAL_Unregister(void);
|
|
||||||
extern void NATIVEFONT_Register(void);
|
|
||||||
extern void NATIVEFONT_Unregister(void);
|
|
||||||
extern void PAGER_Register(void);
|
|
||||||
extern void PAGER_Unregister(void);
|
|
||||||
extern void PROGRESS_Register(void);
|
|
||||||
extern void PROGRESS_Unregister(void);
|
|
||||||
extern void REBAR_Register(void);
|
|
||||||
extern void REBAR_Unregister(void);
|
|
||||||
extern void STATUS_Register(void);
|
|
||||||
extern void STATUS_Unregister(void);
|
|
||||||
extern void SYSLINK_Register(void);
|
|
||||||
extern void SYSLINK_Unregister(void);
|
|
||||||
extern void TAB_Register(void);
|
|
||||||
extern void TAB_Unregister(void);
|
|
||||||
extern void TOOLBAR_Register(void);
|
|
||||||
extern void TOOLBAR_Unregister(void);
|
|
||||||
extern void TOOLTIPS_Register(void);
|
|
||||||
extern void TOOLTIPS_Unregister(void);
|
|
||||||
extern void TRACKBAR_Register(void);
|
|
||||||
extern void TRACKBAR_Unregister(void);
|
|
||||||
extern void TREEVIEW_Register(void);
|
|
||||||
extern void TREEVIEW_Unregister(void);
|
|
||||||
extern void UPDOWN_Register(void);
|
|
||||||
extern void UPDOWN_Unregister(void);
|
|
||||||
|
|
||||||
LRESULT WINAPI COMCTL32_SubclassProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
LRESULT WINAPI COMCTL32_SubclassProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||||
|
|
||||||
LPWSTR COMCTL32_wSubclass = NULL;
|
LPWSTR COMCTL32_wSubclass = NULL;
|
||||||
|
|
|
@ -36,6 +36,7 @@
|
||||||
#include "winerror.h"
|
#include "winerror.h"
|
||||||
#include "winuser.h"
|
#include "winuser.h"
|
||||||
#include "commctrl.h"
|
#include "commctrl.h"
|
||||||
|
#include "comctl32.h"
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(commctrl);
|
WINE_DEFAULT_DEBUG_CHANNEL(commctrl);
|
||||||
|
|
|
@ -6926,7 +6926,7 @@ static DWORD LISTVIEW_SetIconSpacing(LISTVIEW_INFO *infoPtr, INT cx, INT cy)
|
||||||
return oldspacing;
|
return oldspacing;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void set_icon_size(SIZE *size, HIMAGELIST himl, BOOL small)
|
static inline void set_icon_size(SIZE *size, HIMAGELIST himl, BOOL small)
|
||||||
{
|
{
|
||||||
INT cx, cy;
|
INT cx, cy;
|
||||||
|
|
||||||
|
|
|
@ -170,19 +170,6 @@ static int MONTHCAL_ValidateTime(SYSTEMTIME time)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void MONTHCAL_CopyTime(const SYSTEMTIME *from, SYSTEMTIME *to)
|
|
||||||
{
|
|
||||||
to->wYear = from->wYear;
|
|
||||||
to->wMonth = from->wMonth;
|
|
||||||
to->wDayOfWeek = from->wDayOfWeek;
|
|
||||||
to->wDay = from->wDay;
|
|
||||||
to->wHour = from->wHour;
|
|
||||||
to->wMinute = from->wMinute;
|
|
||||||
to->wSecond = from->wSecond;
|
|
||||||
to->wMilliseconds = from->wMilliseconds;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Note:Depending on DST, this may be offset by a day.
|
/* Note:Depending on DST, this may be offset by a day.
|
||||||
Need to find out if we're on a DST place & adjust the clock accordingly.
|
Need to find out if we're on a DST place & adjust the clock accordingly.
|
||||||
Above function assumes we have a valid data.
|
Above function assumes we have a valid data.
|
||||||
|
|
|
@ -296,7 +296,7 @@ static void PROPSHEET_GetPageRect(const PropSheetInfo * psInfo, HWND hwndDlg,
|
||||||
*
|
*
|
||||||
* Find page index corresponding to page resource id.
|
* Find page index corresponding to page resource id.
|
||||||
*/
|
*/
|
||||||
INT PROPSHEET_FindPageByResId(PropSheetInfo * psInfo, LRESULT resId)
|
static INT PROPSHEET_FindPageByResId(PropSheetInfo * psInfo, LRESULT resId)
|
||||||
{
|
{
|
||||||
INT i;
|
INT i;
|
||||||
|
|
||||||
|
@ -1265,7 +1265,7 @@ static BOOL PROPSHEET_CreateTabControl(HWND hwndParent,
|
||||||
* Subclassing window procedure for wizard extrior pages to prevent drawing
|
* Subclassing window procedure for wizard extrior pages to prevent drawing
|
||||||
* background and so drawing above the watermark.
|
* background and so drawing above the watermark.
|
||||||
*/
|
*/
|
||||||
LRESULT CALLBACK
|
static LRESULT CALLBACK
|
||||||
PROPSHEET_WizardSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, UINT_PTR uID, DWORD_PTR dwRef)
|
PROPSHEET_WizardSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, UINT_PTR uID, DWORD_PTR dwRef)
|
||||||
{
|
{
|
||||||
switch (uMsg)
|
switch (uMsg)
|
||||||
|
|
|
@ -41,7 +41,7 @@ static INT CALLBACK dpa_strcmp(LPVOID pvstr1, LPVOID pvstr2, LPARAM flags)
|
||||||
return lstrcmpA (str1, str2);
|
return lstrcmpA (str1, str2);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DPA_test()
|
static void DPA_test(void)
|
||||||
{
|
{
|
||||||
HDPA dpa_ret;
|
HDPA dpa_ret;
|
||||||
INT int_ret;
|
INT int_ret;
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
#define trace_tab(str)
|
#define trace_tab(str)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
HWND
|
static HWND
|
||||||
create_tabcontrol (DWORD style)
|
create_tabcontrol (DWORD style)
|
||||||
{
|
{
|
||||||
HWND handle;
|
HWND handle;
|
||||||
|
@ -76,7 +76,7 @@ create_tabcontrol (DWORD style)
|
||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CheckSize(HWND hwnd, INT width, INT height)
|
static void CheckSize(HWND hwnd, INT width, INT height)
|
||||||
{
|
{
|
||||||
RECT rTab, r1;
|
RECT rTab, r1;
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ void CheckSize(HWND hwnd, INT width, INT height)
|
||||||
"Expected [%d,%d] got [%ld,%ld]\n", width, height, rTab.right - rTab.left, rTab.bottom - rTab.top);
|
"Expected [%d,%d] got [%ld,%ld]\n", width, height, rTab.right - rTab.left, rTab.bottom - rTab.top);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabCheckSetSize(HWND hwnd, INT SetWidth, INT SetHeight, INT ExpWidth, INT ExpHeight)
|
static void TabCheckSetSize(HWND hwnd, INT SetWidth, INT SetHeight, INT ExpWidth, INT ExpHeight)
|
||||||
{
|
{
|
||||||
SendMessage (hwnd, TCM_SETITEMSIZE, 0,
|
SendMessage (hwnd, TCM_SETITEMSIZE, 0,
|
||||||
(LPARAM) MAKELPARAM((SetWidth >= 0) ? SetWidth:0, (SetHeight >= 0) ? SetHeight:0));
|
(LPARAM) MAKELPARAM((SetWidth >= 0) ? SetWidth:0, (SetHeight >= 0) ? SetHeight:0));
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
static HDC desktopDC;
|
static HDC desktopDC;
|
||||||
static HINSTANCE hinst;
|
static HINSTANCE hinst;
|
||||||
|
|
||||||
HWND create_edit_control (DWORD style, DWORD exstyle)
|
static HWND create_edit_control (DWORD style, DWORD exstyle)
|
||||||
{
|
{
|
||||||
HWND handle;
|
HWND handle;
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ HWND create_edit_control (DWORD style, DWORD exstyle)
|
||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
HWND create_updown_control (HWND hWndEdit)
|
static HWND create_updown_control (HWND hWndEdit)
|
||||||
{
|
{
|
||||||
HWND hWndUpDown;
|
HWND hWndUpDown;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue