From 83ac1d512d846f4095288b909d97fa492fd4b9bf Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Thu, 2 Jan 2014 12:21:57 +0000 Subject: METAFONT (x11-Xlib): Avoid gcc warnings by casting screenwidth, screendepth to 'unsigned int' git-svn-id: svn://tug.org/texlive/trunk@32546 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/window/ChangeLog | 4 ++++ Build/source/texk/web2c/window/mfdisplay.h | 2 +- Build/source/texk/web2c/window/x11-Xlib.c | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'Build') diff --git a/Build/source/texk/web2c/window/ChangeLog b/Build/source/texk/web2c/window/ChangeLog index 24a0e26ab2b..aa581f5b0f3 100644 --- a/Build/source/texk/web2c/window/ChangeLog +++ b/Build/source/texk/web2c/window/ChangeLog @@ -1,3 +1,7 @@ +2014-01-02 Peter Breitenlohner + + * x11-Xlib.c: Cast screenwidth, screendepth to 'unsigned int'. + 2013-07-01 Peter Breitenlohner * tek.c: Replace bzero(t, l) => memset(t, 0, l) and bcmp() => diff --git a/Build/source/texk/web2c/window/mfdisplay.h b/Build/source/texk/web2c/window/mfdisplay.h index e001d2e36ec..a1a0cbc2ace 100644 --- a/Build/source/texk/web2c/window/mfdisplay.h +++ b/Build/source/texk/web2c/window/mfdisplay.h @@ -1,4 +1,4 @@ -/* mfwinlib.h: include file for Metafont display routines. +/* mfdisplay.h: include file for Metafont display routines. This file is public domain. */ diff --git a/Build/source/texk/web2c/window/x11-Xlib.c b/Build/source/texk/web2c/window/x11-Xlib.c index 01941d509af..91580c7fe48 100644 --- a/Build/source/texk/web2c/window/x11-Xlib.c +++ b/Build/source/texk/web2c/window/x11-Xlib.c @@ -105,7 +105,8 @@ mf_x11_initscreen(void) sizehints.height = screendepth; sizehints.flags = PPosition|PSize; - sprintf (default_geometry, "%ux%u+%u+%u", screenwidth, screendepth, + sprintf (default_geometry, "%ux%u+%u+%u", + (unsigned int) screenwidth, (unsigned int) screendepth, DEFAULT_X_POSITION, DEFAULT_Y_POSITION); /* Look up the geometry for this window. (Section 10.2 Obtaining X -- cgit v1.2.3