summaryrefslogtreecommitdiffstats
path: root/generic/ttk/ttkLabel.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-15 15:36:21 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-15 15:36:21 (GMT)
commit83b500a0ded425d44265a396086035da7044b127 (patch)
treedbea85b04cde9b0f41694864f461837aebedda2b /generic/ttk/ttkLabel.c
parent9f8f3f41603d986e304aac2f5f2d85bd02606d49 (diff)
parent0ce2a3994f63c21742fc4f937f58852e167e996a (diff)
downloadtk-83b500a0ded425d44265a396086035da7044b127.zip
tk-83b500a0ded425d44265a396086035da7044b127.tar.gz
tk-83b500a0ded425d44265a396086035da7044b127.tar.bz2
Merge 8.6. More usage of TCL_UNUSED macro
Diffstat (limited to 'generic/ttk/ttkLabel.c')
-rw-r--r--generic/ttk/ttkLabel.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/generic/ttk/ttkLabel.c b/generic/ttk/ttkLabel.c
index a4dbf96..6d254e8 100644
--- a/generic/ttk/ttkLabel.c
+++ b/generic/ttk/ttkLabel.c
@@ -569,13 +569,15 @@ static void LabelCleanup(LabelElement *c)
}
static void LabelElementSize(
- void *dummy, void *elementRecord, Tk_Window tkwin,
- int *widthPtr, int *heightPtr, Ttk_Padding *paddingPtr)
+ TCL_UNUSED(void *),
+ void *elementRecord,
+ Tk_Window tkwin,
+ int *widthPtr,
+ int *heightPtr,
+ TCL_UNUSED(Ttk_Padding *))
{
LabelElement *label = (LabelElement *)elementRecord;
int textReqWidth = 0;
- (void)dummy;
- (void)paddingPtr;
LabelSetup(label, tkwin, 0);
@@ -628,12 +630,15 @@ static void DrawCompound(
}
static void LabelElementDraw(
- void *dummy, void *elementRecord, Tk_Window tkwin,
- Drawable d, Ttk_Box b, Ttk_State state)
+ TCL_UNUSED(void *),
+ void *elementRecord,
+ Tk_Window tkwin,
+ Drawable d,
+ Ttk_Box b,
+ Ttk_State state)
{
LabelElement *l = (LabelElement *)elementRecord;
Tk_Anchor anchor = TK_ANCHOR_CENTER;
- (void)dummy;
LabelSetup(l, tkwin, state);