texlive[49629] Build/source/texk/web2c/pdftexdir: pdftexdir: avoid
commits+hironobu at tug.org
commits+hironobu at tug.org
Mon Jan 7 12:59:12 CET 2019
Revision: 49629
http://tug.org/svn/texlive?view=revision&revision=49629
Author: hironobu
Date: 2019-01-07 12:59:12 +0100 (Mon, 07 Jan 2019)
Log Message:
-----------
pdftexdir: avoid compiler warnings
Modified Paths:
--------------
trunk/Build/source/texk/web2c/pdftexdir/ChangeLog
trunk/Build/source/texk/web2c/pdftexdir/tounicode.c
trunk/Build/source/texk/web2c/pdftexdir/writet3.c
Modified: trunk/Build/source/texk/web2c/pdftexdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/ChangeLog 2019-01-07 01:23:35 UTC (rev 49628)
+++ trunk/Build/source/texk/web2c/pdftexdir/ChangeLog 2019-01-07 11:59:12 UTC (rev 49629)
@@ -1,3 +1,11 @@
+2019-01-07 Hironobu Yamashita <h.y.acetaminophen at gmail.com>
+
+ * tounicode.c (deftounicode): suppress a warning:
+ format specifies type 'unsigned int' but the argument has
+ type 'long' [-Wformat]
+ * writet3.c (writet3): suppress a warning:
+ add explicit braces to avoid dangling else [-Wdangling-else]
+
2018-12-07 Akira Kakuto <kakuto at fuk.kindai.ac.jp>
* pdftosrc-poppler0.72.0.cc, pdftoepdf-poppler0.72.0.cc:
Modified: trunk/Build/source/texk/web2c/pdftexdir/tounicode.c
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/tounicode.c 2019-01-07 01:23:35 UTC (rev 49628)
+++ trunk/Build/source/texk/web2c/pdftexdir/tounicode.c 2019-01-07 11:59:12 UTC (rev 49629)
@@ -1,5 +1,5 @@
/*
-Copyright 2006-2017 Han The Thanh, <thanh at pdftex.org>
+Copyright 2006-2019 Han The Thanh, <thanh at pdftex.org>
This file is part of pdfTeX.
@@ -118,7 +118,7 @@
i = sscanf(p, "%lX", &(gu->code));
assert(i == 1);
if (gu->code < 0 || gu->code > 0x10FFFF) {
- pdftex_warn("ToUnicode: value out of range [0,10FFFF]: %X",
+ pdftex_warn("ToUnicode: value out of range [0,10FFFF]: %lX",
gu->code);
gu->code = UNI_UNDEF;
}
Modified: trunk/Build/source/texk/web2c/pdftexdir/writet3.c
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/writet3.c 2019-01-07 01:23:35 UTC (rev 49628)
+++ trunk/Build/source/texk/web2c/pdftexdir/writet3.c 2019-01-07 11:59:12 UTC (rev 49629)
@@ -1,5 +1,5 @@
/* writet3.c: write a Type 3 (bitmap PK) font.
-Copyright 1996-2018 Han The Thanh, <thanh at pdftex.org>
+Copyright 1996-2019 Han The Thanh, <thanh at pdftex.org>
This file is part of pdfTeX.
@@ -414,7 +414,7 @@
pdfenddict();
pdfbegindict(cptr, 1); /* CharProcs dictionary */
for (i = first_char; i <= last_char; i++)
- if (t3_char_procs[i] != 0)
+ if (t3_char_procs[i] != 0) {
if (glyph_names && glyph_names[i] && glyph_names[i] != notdef)
pdf_printf("/%s %i 0 R\n", glyph_names[i],
(int) t3_char_procs[i]);
@@ -421,6 +421,7 @@
else
pdf_printf("/a%i %i 0 R\n", (int) i,
(int) t3_char_procs[i]);
+ }
pdfenddict();
t3_close();
tex_printf(">");
More information about the tex-live-commits
mailing list