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 cce1301d56c..1f21fc051f6 100644 --- a/lib/binary-io.h +++ b/lib/binary-io.h | |||
| @@ -47,10 +47,8 @@ _GL_INLINE_HEADER_BEGIN | |||
| 47 | /* Use a function rather than a macro, to avoid gcc warnings | 47 | /* Use a function rather than a macro, to avoid gcc warnings |
| 48 | "warning: statement with no effect". */ | 48 | "warning: statement with no effect". */ |
| 49 | BINARY_IO_INLINE int | 49 | BINARY_IO_INLINE int |
| 50 | __gl_setmode (int fd, int mode) | 50 | __gl_setmode (int fd _GL_UNUSED, int mode _GL_UNUSED) |
| 51 | { | 51 | { |
| 52 | (void) fd; | ||
| 53 | (void) mode; | ||
| 54 | return O_BINARY; | 52 | return O_BINARY; |
| 55 | } | 53 | } |
| 56 | #endif | 54 | #endif |
| @@ -59,7 +57,7 @@ __gl_setmode (int fd, int mode) | |||
| 59 | extern int __gl_setmode_check (int); | 57 | extern int __gl_setmode_check (int); |
| 60 | #else | 58 | #else |
| 61 | BINARY_IO_INLINE int | 59 | BINARY_IO_INLINE int |
| 62 | __gl_setmode_check (int fd) { return 0; } | 60 | __gl_setmode_check (int fd _GL_UNUSED) { return 0; } |
| 63 | #endif | 61 | #endif |
| 64 | 62 | ||
| 65 | /* Set FD's mode to MODE, which should be either O_TEXT or O_BINARY. | 63 | /* Set FD's mode to MODE, which should be either O_TEXT or O_BINARY. |