summaryrefslogtreecommitdiff
path: root/lib/binary-io.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-03-07 17:55:44 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2018-03-07 17:56:28 -0800
commitbb1309f1eb7651b41f2b6b7fb97ddb86bb82160c (patch)
tree001c7043f496575a590372c217015f6e1f9fed72 /lib/binary-io.h
parent1ac190553886ff20817d3dd218464e2fc6f9e42a (diff)
downloademacs-bb1309f1eb7651b41f2b6b7fb97ddb86bb82160c.tar.gz
emacs-bb1309f1eb7651b41f2b6b7fb97ddb86bb82160c.tar.bz2
emacs-bb1309f1eb7651b41f2b6b7fb97ddb86bb82160c.zip
Update from Gnulib
This includes: 2018-03-07 maint: write-file-hooks -> before-save-hook 2018-03-05 binary-io: pacify gcc -Wunused-parameter 2018-03-05 fflush: adjust to glibc 2.28 libio.h removal * build-aux/config.guess, build-aux/config.sub: * build-aux/gitlog-to-changelog, build-aux/install-sh: * build-aux/move-if-change, build-aux/update-copyright: * doc/misc/texinfo.tex, lib/binary-io.h, lib/fpending.c: * lib/stdio-impl.h: Copy from Gnulib.
Diffstat (limited to 'lib/binary-io.h')
-rw-r--r--lib/binary-io.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/binary-io.h b/lib/binary-io.h
index cce1301d56c..1f21fc051f6 100644
--- a/lib/binary-io.h
+++ b/lib/binary-io.h
@@ -47,10 +47,8 @@ _GL_INLINE_HEADER_BEGIN
/* Use a function rather than a macro, to avoid gcc warnings
"warning: statement with no effect". */
BINARY_IO_INLINE int
-__gl_setmode (int fd, int mode)
+__gl_setmode (int fd _GL_UNUSED, int mode _GL_UNUSED)
{
- (void) fd;
- (void) mode;
return O_BINARY;
}
#endif
@@ -59,7 +57,7 @@ __gl_setmode (int fd, int mode)
extern int __gl_setmode_check (int);
#else
BINARY_IO_INLINE int
-__gl_setmode_check (int fd) { return 0; }
+__gl_setmode_check (int fd _GL_UNUSED) { return 0; }
#endif
/* Set FD's mode to MODE, which should be either O_TEXT or O_BINARY.