diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | unix/tkUnixRFont.c | 7 |
2 files changed, 10 insertions, 3 deletions
@@ -1,3 +1,9 @@ +2007-05-07 Joe English <jenglish@users.sourceforge.net> + + * unix/tkUnixRFont.c: Properly cast sentinel arguments + to variadic function (fixes "warning: missing + sentinel in function call", [Bug 1712001]) + 2007-05-04 Pat Thoyts <patthoyts@users.sourceforge.net> * generic/tkFont.c: TIP #145 implementation - 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) { |