summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/lcdf-typetools/lcdf-typetools-2.88-PATCHES/ChangeLog5
-rw-r--r--Build/source/texk/lcdf-typetools/lcdf-typetools-2.88-PATCHES/patch-03-warning14
-rw-r--r--Build/source/texk/lcdf-typetools/otfinfo/otfinfo.cc1
3 files changed, 19 insertions, 1 deletions
diff --git a/Build/source/texk/lcdf-typetools/lcdf-typetools-2.88-PATCHES/ChangeLog b/Build/source/texk/lcdf-typetools/lcdf-typetools-2.88-PATCHES/ChangeLog
index 9659147f0bf..f8518c7269b 100644
--- a/Build/source/texk/lcdf-typetools/lcdf-typetools-2.88-PATCHES/ChangeLog
+++ b/Build/source/texk/lcdf-typetools/lcdf-typetools-2.88-PATCHES/ChangeLog
@@ -2,7 +2,10 @@
Import lcdf-typetools-2.88.
* configure.ac, Makefile.am: Adapt.
- * patch-02-warnings(removed): Now distributed.
+ * patch-02-warnings (removed): Now distributed.
+
+ * patch-03-warning (new): Avoid `uninitialized' warning (the
+ compiler may not realize that this actually can'thappen).
2011-03-08 Peter Breitenlohner <peb@mppmu.mpg.de>
diff --git a/Build/source/texk/lcdf-typetools/lcdf-typetools-2.88-PATCHES/patch-03-warning b/Build/source/texk/lcdf-typetools/lcdf-typetools-2.88-PATCHES/patch-03-warning
new file mode 100644
index 00000000000..540cc2839c2
--- /dev/null
+++ b/Build/source/texk/lcdf-typetools/lcdf-typetools-2.88-PATCHES/patch-03-warning
@@ -0,0 +1,14 @@
+ Avoid `uninitialized' warning (the compiler may not realize
+ that this actually can't happen).
+
+diff -ur lcdf-typetools-2.88.orig/otfinfo/otfinfo.cc lcdf-typetools-2.88/otfinfo/otfinfo.cc
+--- lcdf-typetools-2.88.orig/otfinfo/otfinfo.cc 2011-01-27 18:44:40.000000000 +0100
++++ lcdf-typetools-2.88/otfinfo/otfinfo.cc 2011-03-09 13:36:08.000000000 +0100
+@@ -140,6 +140,7 @@
+ if (!filename || filename == "-") {
+ filename = "<stdin>";
+ f = stdin;
++ f_errno = 0;
+ #if defined(_MSDOS) || defined(_WIN32)
+ // Set the file mode to binary
+ _setmode(_fileno(f), _O_BINARY);
diff --git a/Build/source/texk/lcdf-typetools/otfinfo/otfinfo.cc b/Build/source/texk/lcdf-typetools/otfinfo/otfinfo.cc
index db638fa1389..24bd5dd5a4f 100644
--- a/Build/source/texk/lcdf-typetools/otfinfo/otfinfo.cc
+++ b/Build/source/texk/lcdf-typetools/otfinfo/otfinfo.cc
@@ -140,6 +140,7 @@ read_file(String filename, ErrorHandler *errh, bool warning = false)
if (!filename || filename == "-") {
filename = "<stdin>";
f = stdin;
+ f_errno = 0;
#if defined(_MSDOS) || defined(_WIN32)
// Set the file mode to binary
_setmode(_fileno(f), _O_BINARY);