mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-06 14:10:30 +08:00
Fix unused variable warnings from MIPS syscall macros.
This commit is contained in:
parent
116fc08a61
commit
6eb43a28af
@ -1,3 +1,18 @@
|
||||
2012-11-19 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
|
||||
(INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
|
||||
(INTERNAL_SYSCALL_ERROR_P): Cast val to void.
|
||||
(INTERNAL_SYSCALL_ERRNO): Cast err to void.
|
||||
* sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
|
||||
(INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
|
||||
(INTERNAL_SYSCALL_ERROR_P): Cast val to void.
|
||||
(INTERNAL_SYSCALL_ERRNO): Cast err to void.
|
||||
* sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
|
||||
(INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
|
||||
(INTERNAL_SYSCALL_ERROR_P): Cast val to void.
|
||||
(INTERNAL_SYSCALL_ERRNO): Cast err to void.
|
||||
|
||||
2012-11-17 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* sysdeps/mips/bits/atomic.h
|
||||
|
@ -60,13 +60,13 @@
|
||||
result_var; })
|
||||
|
||||
#undef INTERNAL_SYSCALL_DECL
|
||||
#define INTERNAL_SYSCALL_DECL(err) long err
|
||||
#define INTERNAL_SYSCALL_DECL(err) long err __attribute__ ((unused))
|
||||
|
||||
#undef INTERNAL_SYSCALL_ERROR_P
|
||||
#define INTERNAL_SYSCALL_ERROR_P(val, err) ((long) (err))
|
||||
#define INTERNAL_SYSCALL_ERROR_P(val, err) ((void) (val), (long) (err))
|
||||
|
||||
#undef INTERNAL_SYSCALL_ERRNO
|
||||
#define INTERNAL_SYSCALL_ERRNO(val, err) (val)
|
||||
#define INTERNAL_SYSCALL_ERRNO(val, err) ((void) (err), val)
|
||||
|
||||
#undef INTERNAL_SYSCALL
|
||||
#define INTERNAL_SYSCALL(name, err, nr, args...) \
|
||||
|
@ -64,13 +64,13 @@
|
||||
result_var; })
|
||||
|
||||
#undef INTERNAL_SYSCALL_DECL
|
||||
#define INTERNAL_SYSCALL_DECL(err) long err
|
||||
#define INTERNAL_SYSCALL_DECL(err) long err __attribute__ ((unused))
|
||||
|
||||
#undef INTERNAL_SYSCALL_ERROR_P
|
||||
#define INTERNAL_SYSCALL_ERROR_P(val, err) ((long) (err))
|
||||
#define INTERNAL_SYSCALL_ERROR_P(val, err) ((void) (val), (long) (err))
|
||||
|
||||
#undef INTERNAL_SYSCALL_ERRNO
|
||||
#define INTERNAL_SYSCALL_ERRNO(val, err) (val)
|
||||
#define INTERNAL_SYSCALL_ERRNO(val, err) ((void) (err), val)
|
||||
|
||||
#undef INTERNAL_SYSCALL
|
||||
#define INTERNAL_SYSCALL(name, err, nr, args...) \
|
||||
|
@ -60,13 +60,13 @@
|
||||
result_var; })
|
||||
|
||||
#undef INTERNAL_SYSCALL_DECL
|
||||
#define INTERNAL_SYSCALL_DECL(err) long err
|
||||
#define INTERNAL_SYSCALL_DECL(err) long err __attribute__ ((unused))
|
||||
|
||||
#undef INTERNAL_SYSCALL_ERROR_P
|
||||
#define INTERNAL_SYSCALL_ERROR_P(val, err) ((long) (err))
|
||||
#define INTERNAL_SYSCALL_ERROR_P(val, err) ((void) (val), (long) (err))
|
||||
|
||||
#undef INTERNAL_SYSCALL_ERRNO
|
||||
#define INTERNAL_SYSCALL_ERRNO(val, err) (val)
|
||||
#define INTERNAL_SYSCALL_ERRNO(val, err) ((void) (err), val)
|
||||
|
||||
#undef INTERNAL_SYSCALL
|
||||
#define INTERNAL_SYSCALL(name, err, nr, args...) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user