diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-11-10 09:10:29 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-11-10 09:10:29 +0000 |
commit | 98a70f28ba3648175b322ffadaa111ca0e6dd63d (patch) | |
tree | 9024f65e5d54cf80cdc985ccd8b4404f0851493f | |
parent | b9276fd10b0bc004c9bb5849e83ead76aebd2af3 (diff) |
texk/web2c: Avoid gcc -Wunused-value warning
git-svn-id: svn://tug.org/texlive/trunk@35555 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Build/source/texk/web2c/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/web2c/cpascal.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/ChangeLog b/Build/source/texk/web2c/ChangeLog index 14f43192d2c..0da461a433e 100644 --- a/Build/source/texk/web2c/ChangeLog +++ b/Build/source/texk/web2c/ChangeLog @@ -1,3 +1,7 @@ +2014-11-10 Peter Breitenlohner <peb@mppmu.mpg.de> + + * cpascal.h (makebinaryfile): Avoid gcc -Wunused-value warning. + 2014-11-07 Peter Breitenlohner <peb@mppmu.mpg.de> * tftopl.ch, vftovp.ch: Add missing space to message. diff --git a/Build/source/texk/web2c/cpascal.h b/Build/source/texk/web2c/cpascal.h index 48700a023fc..785f81a4e23 100644 --- a/Build/source/texk/web2c/cpascal.h +++ b/Build/source/texk/web2c/cpascal.h @@ -107,7 +107,7 @@ typedef FILE *text; #if defined (__DJGPP__) || defined (WIN32) #include <io.h> /* Don't set console device to binary. */ -#define makebinaryfile(arg) ((!isatty(fileno(arg)) && setmode(fileno(arg), O_BINARY)), arg) +#define makebinaryfile(arg) ((void)(!isatty(fileno(arg)) && setmode(fileno(arg), O_BINARY)), arg) #else #define makebinaryfile(arg) (arg) #endif |