OSDN Git Service

silence some warnings about unused params
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sat, 23 Jan 2010 21:37:01 +0000 (22:37 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sat, 23 Jan 2010 21:37:01 +0000 (22:37 +0100)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/misc/glob/glob-susv3.c
libc/misc/internals/__uClibc_main.c
libc/misc/regex/regex_old.c
libc/pwd_grp/lckpwdf.c

index 1d64249..59b4d8e 100644 (file)
@@ -183,7 +183,8 @@ int __glob_match_in_dir(const char *d, const char *p, int flags, int (*errfunc)(
 # ifndef BUILD_GLOB64
 static
 # endif
-int __glob_ignore_err(const char *path, int err)
+int __glob_ignore_err(const char * path attribute_unused,
+                       int err attribute_unused)
 {
        return 0;
 }
index b166aaa..19acbe0 100644 (file)
@@ -257,10 +257,11 @@ libc_hidden_def(__uClibc_fini)
  */
 void __uClibc_main(int (*main)(int, char **, char **), int argc,
                    char **argv, void (*app_init)(void), void (*app_fini)(void),
-                   void (*rtld_fini)(void), void *stack_end) attribute_noreturn;
+                   void (*rtld_fini)(void),
+                   void *stack_end attribute_unused) attribute_noreturn;
 void __uClibc_main(int (*main)(int, char **, char **), int argc,
                    char **argv, void (*app_init)(void), void (*app_fini)(void),
-                   void (*rtld_fini)(void), void *stack_end)
+                   void (*rtld_fini)(void), void *stack_end attribute_unused)
 {
 #ifndef __ARCH_HAS_NO_LDSO__
     unsigned long *aux_dat;
index cbfb7ae..bc2ad6c 100644 (file)
@@ -8140,7 +8140,7 @@ libc_hidden_def(regexec)
 size_t
 regerror (
     int errcode,
-    const regex_t *preg,
+    const regex_t * preg attribute_unused,
     char *errbuf,
     size_t errbuf_size)
 {
index e02cab6..da72b0f 100644 (file)
@@ -146,7 +146,7 @@ ulckpwdf (void)
 
 
 static void
-noop_handler (int sig)
-{
+noop_handler (int sig attribute_unused)
+
   /* We simply return which makes the `fcntl' call return with an error.  */
 }