diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-03-09 12:50:35 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-03-09 12:50:35 +0000 |
commit | 3ec3922e3555479434cfbd66e77697cd6c36d02b (patch) | |
tree | 184ffae810ba8e8ebeedcec0b1642898ef8fd23f /Build | |
parent | f97c17bf8bf8b0998c128160616349d7cfcdec4b (diff) |
lcdf-typetools: compiler warning
git-svn-id: svn://tug.org/texlive/trunk@21662 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
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); |