From 07671ba65e664b020c18c2fd26fccd278ef0dcb6 Mon Sep 17 00:00:00 2001 From: fvogel Date: Sun, 29 Oct 2023 14:40:01 +0000 Subject: Remove warnings when DEBUG_FONTSEL is defined. Commits like [6c1859a0] seem to have forgotten to propagate the changes to the DEBUG_FONTSEL case. --- unix/tkUnixRFont.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c index a295173..e3871a5 100644 --- a/unix/tkUnixRFont.c +++ b/unix/tkUnixRFont.c @@ -497,7 +497,8 @@ TkpGetFontFromAttributes( #ifdef DEBUG_FONTSEL printf("TkpGetFontFromAttributes %s-%d %d %d\n", faPtr->family, - faPtr->size, faPtr->weight, faPtr->slant); + (int) faPtr->size, + faPtr->weight, faPtr->slant); #endif /* DEBUG_FONTSEL */ pattern = XftPatternCreate(); if (faPtr->family) { @@ -940,7 +941,7 @@ Tk_DrawChars( if (fontPtr->ftDraw == 0) { #ifdef DEBUG_FONTSEL - printf("Switch to drawable 0x%x\n", drawable); + printf("Switch to drawable 0x%lx\n", drawable); #endif /* DEBUG_FONTSEL */ fontPtr->ftDraw = XftDrawCreate(display, drawable, DefaultVisual(display, fontPtr->screen), @@ -1199,7 +1200,7 @@ TkDrawAngledChars( if (fontPtr->ftDraw == 0) { #ifdef DEBUG_FONTSEL - printf("Switch to drawable 0x%x\n", drawable); + printf("Switch to drawable 0x%lx\n", drawable); #endif /* DEBUG_FONTSEL */ fontPtr->ftDraw = XftDrawCreate(display, drawable, DefaultVisual(display, fontPtr->screen), -- cgit v0.12