summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2014-01-02 12:21:57 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2014-01-02 12:21:57 +0000
commit83ac1d512d846f4095288b909d97fa492fd4b9bf (patch)
tree94ce12e5092dd254463f3d17fb6858019dc02155 /Build
parentd36033d619081900fbf33ff6b71783bd1577d218 (diff)
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
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/web2c/window/ChangeLog4
-rw-r--r--Build/source/texk/web2c/window/mfdisplay.h2
-rw-r--r--Build/source/texk/web2c/window/x11-Xlib.c3
3 files changed, 7 insertions, 2 deletions
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 <peb@mppmu.mpg.de>
+
+ * x11-Xlib.c: Cast screenwidth, screendepth to 'unsigned int'.
+
2013-07-01 Peter Breitenlohner <peb@mppmu.mpg.de>
* 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