summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/pdftexdir
diff options
context:
space:
mode:
authorHironobu Yamashita <h.y.acetaminophen@gmail.com>2019-01-07 11:59:12 +0000
committerHironobu Yamashita <h.y.acetaminophen@gmail.com>2019-01-07 11:59:12 +0000
commit55126e8a27ec728e1af09422af990c00c8aaa538 (patch)
tree78b912f279141799ce44472b381d24c840562a09 /Build/source/texk/web2c/pdftexdir
parentb50368426d8f8449125a1c2e6e2304a0112b9d08 (diff)
pdftexdir: avoid compiler warnings
git-svn-id: svn://tug.org/texlive/trunk@49629 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir')
-rw-r--r--Build/source/texk/web2c/pdftexdir/ChangeLog8
-rw-r--r--Build/source/texk/web2c/pdftexdir/tounicode.c4
-rw-r--r--Build/source/texk/web2c/pdftexdir/writet3.c5
3 files changed, 13 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/ChangeLog b/Build/source/texk/web2c/pdftexdir/ChangeLog
index 7509de0256f..339ce104e0a 100644
--- a/Build/source/texk/web2c/pdftexdir/ChangeLog
+++ b/Build/source/texk/web2c/pdftexdir/ChangeLog
@@ -1,3 +1,11 @@
+2019-01-07 Hironobu Yamashita <h.y.acetaminophen@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@fuk.kindai.ac.jp>
* pdftosrc-poppler0.72.0.cc, pdftoepdf-poppler0.72.0.cc:
diff --git a/Build/source/texk/web2c/pdftexdir/tounicode.c b/Build/source/texk/web2c/pdftexdir/tounicode.c
index 716ebf6ea66..3d93a3578d4 100644
--- a/Build/source/texk/web2c/pdftexdir/tounicode.c
+++ b/Build/source/texk/web2c/pdftexdir/tounicode.c
@@ -1,5 +1,5 @@
/*
-Copyright 2006-2017 Han The Thanh, <thanh@pdftex.org>
+Copyright 2006-2019 Han The Thanh, <thanh@pdftex.org>
This file is part of pdfTeX.
@@ -118,7 +118,7 @@ void deftounicode(strnumber glyph, strnumber unistr)
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;
}
diff --git a/Build/source/texk/web2c/pdftexdir/writet3.c b/Build/source/texk/web2c/pdftexdir/writet3.c
index f72ab32f944..5d5eb47729f 100644
--- a/Build/source/texk/web2c/pdftexdir/writet3.c
+++ b/Build/source/texk/web2c/pdftexdir/writet3.c
@@ -1,5 +1,5 @@
/* writet3.c: write a Type 3 (bitmap PK) font.
-Copyright 1996-2018 Han The Thanh, <thanh@pdftex.org>
+Copyright 1996-2019 Han The Thanh, <thanh@pdftex.org>
This file is part of pdfTeX.
@@ -414,13 +414,14 @@ void writet3(fm_entry * fm, int objnum, internalfontnumber f)
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]);
else
pdf_printf("/a%i %i 0 R\n", (int) i,
(int) t3_char_procs[i]);
+ }
pdfenddict();
t3_close();
tex_printf(">");