summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-03-02 11:24:41 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-03-02 11:24:41 (GMT)
commitb9766110493b9502d12897391dab11d20acb4ad7 (patch)
treef061d6b42d909c406f9edfdc831bd1d5326ce798
parent04c7f4864c25ecdce85ae2e51c7eb4f52b174a03 (diff)
downloadtk-b9766110493b9502d12897391dab11d20acb4ad7.zip
tk-b9766110493b9502d12897391dab11d20acb4ad7.tar.gz
tk-b9766110493b9502d12897391dab11d20acb4ad7.tar.bz2
Some more C warnings (windows-specific)
-rw-r--r--win/ttkWinMonitor.c1
-rw-r--r--win/ttkWinTheme.c5
-rw-r--r--win/ttkWinXPTheme.c2
3 files changed, 8 insertions, 0 deletions
diff --git a/win/ttkWinMonitor.c b/win/ttkWinMonitor.c
index 2db00b5..0fb362b 100644
--- a/win/ttkWinMonitor.c
+++ b/win/ttkWinMonitor.c
@@ -146,6 +146,7 @@ WndProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
MODULE_SCOPE int TtkWinTheme_Init(Tcl_Interp *, HWND hwnd);
MODULE_SCOPE int TtkXPTheme_Init(Tcl_Interp *, HWND hwnd);
+MODULE_SCOPE int Ttk_WinPlatformInit(Tcl_Interp *interp);
MODULE_SCOPE int Ttk_WinPlatformInit(Tcl_Interp *interp)
{
diff --git a/win/ttkWinTheme.c b/win/ttkWinTheme.c
index 4762813..35bde14 100644
--- a/win/ttkWinTheme.c
+++ b/win/ttkWinTheme.c
@@ -794,6 +794,11 @@ TTK_END_LAYOUT_TABLE
MODULE_SCOPE
int TtkWinTheme_Init(
Tcl_Interp *interp,
+ TCL_UNUSED(HWND));
+
+MODULE_SCOPE
+int TtkWinTheme_Init(
+ Tcl_Interp *interp,
TCL_UNUSED(HWND))
{
Ttk_Theme themePtr, parentPtr;
diff --git a/win/ttkWinXPTheme.c b/win/ttkWinXPTheme.c
index 0365867..2facf89 100644
--- a/win/ttkWinXPTheme.c
+++ b/win/ttkWinXPTheme.c
@@ -1290,6 +1290,8 @@ retErr:
* +++ Initialization routine:
*/
+MODULE_SCOPE int TtkXPTheme_Init(Tcl_Interp *interp, HWND hwnd);
+
MODULE_SCOPE int TtkXPTheme_Init(Tcl_Interp *interp, HWND hwnd)
{
XPThemeData *themeData;