summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixMenubu.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-05 07:56:33 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-05 07:56:33 (GMT)
commit121af720bc29f65b64fcdcf520cb2d00368eb258 (patch)
treed777f374f5dd01aa118ee2e7b34a64e8cd0d6d78 /unix/tkUnixMenubu.c
parent91500fc2feafa36fe71ce1453075b73386d16e34 (diff)
downloadtk-121af720bc29f65b64fcdcf520cb2d00368eb258.zip
tk-121af720bc29f65b64fcdcf520cb2d00368eb258.tar.gz
tk-121af720bc29f65b64fcdcf520cb2d00368eb258.tar.bz2
Fix many warnings related to the -Wshadow gcc compiler flag
Diffstat (limited to 'unix/tkUnixMenubu.c')
-rw-r--r--unix/tkUnixMenubu.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/unix/tkUnixMenubu.c b/unix/tkUnixMenubu.c
index 2c6b99b..6677e83 100644
--- a/unix/tkUnixMenubu.c
+++ b/unix/tkUnixMenubu.c
@@ -25,16 +25,16 @@
* Returns a newly allocated TkMenuButton structure.
*
* Side effects:
- * Registers an event handler for the widget.
+ * None
*
*----------------------------------------------------------------------
*/
TkMenuButton *
TkpCreateMenuButton(
- Tk_Window tkwin)
+ TCL_UNUSED(Tk_Window))
{
- return ckalloc(sizeof(TkMenuButton));
+ return (TkMenuButton *)ckalloc(sizeof(TkMenuButton));
}
/*
@@ -280,8 +280,6 @@ TkpDisplayMenuButton(
mbPtr->borderWidth, mbPtr->relief);
}
if (mbPtr->highlightWidth != 0) {
- GC gc;
-
if (mbPtr->flags & GOT_FOCUS) {
gc = Tk_GCForColor(mbPtr->highlightColorPtr, pixmap);
} else {