summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-04 00:43:37 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-04 00:43:37 +0000
commitf9ff85a50a2fd0041289fdcb07f701f157b0d295 (patch)
tree9190f3c646396365bda0734c4ae593ec44ac2289
parentbfc0df1617becca4888799853eae8beab6ccae5a (diff)
kill off some unused warnings
-rw-r--r--libc/sysdeps/linux/common/create_module.c2
-rw-r--r--libc/sysdeps/linux/common/get_kernel_syms.c2
-rw-r--r--libc/sysdeps/linux/common/posix_fadvise.c2
-rw-r--r--libc/sysdeps/linux/common/query_module.c4
4 files changed, 5 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/common/create_module.c b/libc/sysdeps/linux/common/create_module.c
index a54f13be5..5a604d0dc 100644
--- a/libc/sysdeps/linux/common/create_module.c
+++ b/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;
diff --git a/libc/sysdeps/linux/common/get_kernel_syms.c b/libc/sysdeps/linux/common/get_kernel_syms.c
index 92a105ebd..a1ab3a552 100644
--- a/libc/sysdeps/linux/common/get_kernel_syms.c
+++ b/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;
diff --git a/libc/sysdeps/linux/common/posix_fadvise.c b/libc/sysdeps/linux/common/posix_fadvise.c
index 8ca973e86..5662a440c 100644
--- a/libc/sysdeps/linux/common/posix_fadvise.c
+++ b/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;
diff --git a/libc/sysdeps/linux/common/query_module.c b/libc/sysdeps/linux/common/query_module.c
index 09c1a56e8..853b9ed94 100644
--- a/libc/sysdeps/linux/common/query_module.c
+++ b/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;