diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-05-27 12:02:41 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-05-27 12:02:41 (GMT) |
commit | 6a43889bd93ef12910627c501dbf335e73750149 (patch) | |
tree | 21939f657d2769f5732e5e7741c4aa4d1cfd5dcd /unix/tkUnixFont.c | |
parent | 214b73439bb1c0e97ed318ba50933bbf0bc0b1cb (diff) | |
download | tk-6a43889bd93ef12910627c501dbf335e73750149.zip tk-6a43889bd93ef12910627c501dbf335e73750149.tar.gz tk-6a43889bd93ef12910627c501dbf335e73750149.tar.bz2 |
Fix parameter mismatch between functions definitions and implementation. This gives a warning with Gcc 11
Diffstat (limited to 'unix/tkUnixFont.c')
-rw-r--r-- | unix/tkUnixFont.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tkUnixFont.c b/unix/tkUnixFont.c index bd83a5e..665b260 100644 --- a/unix/tkUnixFont.c +++ b/unix/tkUnixFont.c @@ -2763,9 +2763,9 @@ GetScreenFont( FontAttributes *wantPtr, /* Contains desired actual pixel-size if the * best font was scalable. */ char **nameList, /* Array of XLFDs. */ - int bestIdx[2], /* Indices into above array for XLFD of best + int bestIdx[], /* Indices into above array for XLFD of best * bitmapped and best scalable font. */ - unsigned bestScore[2]) /* Scores of best bitmapped and best scalable + unsigned bestScore[]) /* Scores of best bitmapped and best scalable * font. XLFD corresponding to lowest score * will be constructed. */ { |