diff options
Diffstat (limited to 'lib/binary-io.h')
-rw-r--r-- | lib/binary-io.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/binary-io.h b/lib/binary-io.h index 763eddba56a..3eae9d57ecb 100644 --- a/lib/binary-io.h +++ b/lib/binary-io.h @@ -48,10 +48,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 @@ -60,7 +58,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. |