summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjenglish <jenglish@flightlab.com>2007-05-07 19:28:22 (GMT)
committerjenglish <jenglish@flightlab.com>2007-05-07 19:28:22 (GMT)
commitff2622f3a5e6a322a42b0841a92572fa12d97864 (patch)
treee0c510a4bde9b2b60d4f230c4390e14016ce0f03 /unix
parent2e593c0a4e991fbecea3a60871901357adb47fb6 (diff)
downloadtk-ff2622f3a5e6a322a42b0841a92572fa12d97864.zip
tk-ff2622f3a5e6a322a42b0841a92572fa12d97864.tar.gz
tk-ff2622f3a5e6a322a42b0841a92572fa12d97864.tar.bz2
Properly cast sentinel arguments to variadic function
(fixes "warning: missing sentinel in function call", [Bug 1712001])
Diffstat (limited to 'unix')
-rw-r--r--unix/tkUnixRFont.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c
index 04f54de..c4e6eb0 100644
--- a/unix/tkUnixRFont.c
+++ b/unix/tkUnixRFont.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkUnixRFont.c,v 1.17 2007/05/03 15:21:32 dkf Exp $
+ * RCS: @(#) $Id: tkUnixRFont.c,v 1.18 2007/05/07 19:28:22 jenglish Exp $
*/
#include "tkUnixInt.h"
@@ -403,8 +403,9 @@ TkpGetFontFamilies(
resultPtr = Tcl_NewListObj(0, NULL);
- list = XftListFonts(Tk_Display(tkwin), Tk_ScreenNumber(tkwin), 0,
- XFT_FAMILY, 0);
+ list = XftListFonts(Tk_Display(tkwin), Tk_ScreenNumber(tkwin),
+ (char*)0, /* pattern elements */
+ XFT_FAMILY, (char*)0); /* fields */
for (i = 0; i < list->nfont; i++) {
if (XftPatternGetString(list->fonts[i], XFT_FAMILY, 0,
familyPtr) == XftResultMatch) {