summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2010-05-11 08:39:25 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2010-05-11 08:39:25 +0000
commit0f0e478dba51669836f1a6f3078a27c64816f151 (patch)
treed3f9a8d7db1d8f63498811a1ce6af6b47d586d47 /Build/source/texk/kpathsea
parent4fd54ee7ff93817274972e2e2ed63c4c5c49cc76 (diff)
SET_BINARY and casts to void
git-svn-id: svn://tug.org/texlive/trunk@18196 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea')
-rw-r--r--Build/source/texk/kpathsea/ChangeLog4
-rw-r--r--Build/source/texk/kpathsea/c-fopen.h7
2 files changed, 8 insertions, 3 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog
index ed4118b2ebc..34f7e3701c5 100644
--- a/Build/source/texk/kpathsea/ChangeLog
+++ b/Build/source/texk/kpathsea/ChangeLog
@@ -1,3 +1,7 @@
+2010-05-10 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * c-fopen.h [SET_BINARY]: Add cast to void.
+
2010-05-09 Peter Breitenlohner <peb@mppmu.mpg.de>
* progname.c (kpathsea_set_program_name): Drop superfluous cast.
diff --git a/Build/source/texk/kpathsea/c-fopen.h b/Build/source/texk/kpathsea/c-fopen.h
index c22c0ec7ea1..3ae1f911f48 100644
--- a/Build/source/texk/kpathsea/c-fopen.h
+++ b/Build/source/texk/kpathsea/c-fopen.h
@@ -49,7 +49,8 @@
/* How to switch an already open file handle to binary mode.
Used on DOSISH systems when we need to switch a standard
- stream, such as stdin or stdout, to binary mode. */
+ stream, such as stdin or stdout, to binary mode.
+ We never use the value return by setmode(). */
#include <fcntl.h>
#ifdef DOSISH
#include <io.h>
@@ -60,13 +61,13 @@
#endif
#if defined (__i386_pc_gnu__) || \
defined (WIN32) || defined (__WIN32__) || defined (_WIN32)
-#define SET_BINARY(f) setmode((f), O_BINARY)
+#define SET_BINARY(f) (void)setmode((f), O_BINARY)
#endif
#else /* not DOSISH */
#ifndef O_BINARY
#define O_BINARY 0
#endif
-#define SET_BINARY(f) 0
+#define SET_BINARY(f) (void)0
#endif /* not DOSISH */
#endif /* not C_FOPEN_H */