diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-10-05 07:56:33 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-10-05 07:56:33 (GMT) |
commit | 121af720bc29f65b64fcdcf520cb2d00368eb258 (patch) | |
tree | d777f374f5dd01aa118ee2e7b34a64e8cd0d6d78 /unix/tkUnixMenubu.c | |
parent | 91500fc2feafa36fe71ce1453075b73386d16e34 (diff) | |
download | tk-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.c | 8 |
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 { |