ソースを参照

kill off some unused warnings

Mike Frysinger 18 年 前
コミット
f9ff85a50a

+ 1 - 1
libc/sysdeps/linux/common/create_module.c

@@ -65,7 +65,7 @@ _syscall2(unsigned long, create_module, const char *, name, size_t, size);
 #endif
 
 #else /* !__NR_create_module */
-caddr_t create_module(const char *name, size_t size)
+caddr_t create_module(const char *name attribute_unused, size_t size attribute_unused)
 {
 	__set_errno(ENOSYS);
 	return (caddr_t)-1;

+ 1 - 1
libc/sysdeps/linux/common/get_kernel_syms.c

@@ -13,7 +13,7 @@ struct kernel_sym;
 #ifdef __NR_get_kernel_syms
 _syscall1(int, get_kernel_syms, struct kernel_sym *, table);
 #else
-int get_kernel_syms(struct kernel_sym *table)
+int get_kernel_syms(struct kernel_sym *table attribute_unused)
 {
 	__set_errno(ENOSYS);
 	return -1;

+ 1 - 1
libc/sysdeps/linux/common/posix_fadvise.c

@@ -25,7 +25,7 @@ weak_alias(posix_fadvise, posix_fadvise64)
 #endif
 
 #else
-int posix_fadvise(int fd, off_t offset, off_t len, int advice)
+int posix_fadvise(int fd attribute_unused, off_t offset attribute_unused, off_t len attribute_unused, int advice attribute_unused)
 {
 	__set_errno(ENOSYS);
 	return -1;

+ 2 - 2
libc/sysdeps/linux/common/query_module.c

@@ -12,8 +12,8 @@
 _syscall5(int, query_module, const char *, name, int, which,
 		  void *, buf, size_t, bufsize, size_t *, ret);
 #else
-int query_module(const char *name, int which,
-				 void *buf, size_t bufsize, size_t * ret)
+int query_module(const char *name attribute_unused, int which attribute_unused,
+				 void *buf attribute_unused, size_t bufsize attribute_unused, size_t * ret attribute_unused)
 {
 	__set_errno(ENOSYS);
 	return -1;