OSDN Git Service

Some more prototypes, enable missing-prototypes/declarations warnings for now
authorPeter S. Mazinger <ps.m@gmx.net>
Thu, 26 Jan 2006 22:19:01 +0000 (22:19 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Thu, 26 Jan 2006 22:19:01 +0000 (22:19 -0000)
Rules.mak
libc/misc/internals/__uClibc_main.c
libcrypt/md5.c
libm/fpmacros.c
libnsl/nsl.c
libresolv/resolv.c

index 2f16dbe..37cf140 100644 (file)
--- a/Rules.mak
+++ b/Rules.mak
@@ -296,7 +296,7 @@ OPTIMIZATION+=$(call check_gcc,-funit-at-a-time,)
 # Add a bunch of extra pedantic annoyingly strict checks
 XWARNINGS=$(subst ",, $(strip $(WARNINGS))) -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
 XWARNINGS+=-Wnested-externs -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wformat=2
-#XWARNINGS+=-Wmissing-prototypes -Wmissing-declarations
+XWARNINGS+=-Wmissing-prototypes -Wmissing-declarations
 # works only w/ gcc-3.4 and up, can't be checked for gcc-3.x w/ check_gcc()
 #XWARNINGS+=-Wdeclaration-after-statement
 XARCH_CFLAGS=$(subst ",, $(strip $(ARCH_CFLAGS)))
index e4e0225..32071c5 100644 (file)
@@ -221,8 +221,10 @@ void attribute_hidden (*__rtld_fini)(void) = NULL;
  * called from crt1 (version 0.9.28 or newer), after ALL shared libraries
  * are initialized, just before we call the application's main function.
  */
-void attribute_noreturn
-__uClibc_main(int (*main)(int, char **, char **), int argc,
+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 __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)
 {
index 7d852b7..82b35dd 100644 (file)
@@ -531,7 +531,8 @@ static void __md5_to64( char *s, unsigned long v, int n)
  * Use MD5 for what it is best at...
  */
 
-extern char attribute_hidden * __md5_crypt( const char *pw, const char *salt)
+char * __md5_crypt( const char *pw, const char *salt) attribute_hidden;
+char * __md5_crypt( const char *pw, const char *salt)
 {
        /* Static stuff */
        static const char *sp, *ep;
index ebcb7c5..0a079c0 100644 (file)
@@ -122,6 +122,7 @@ libm_hidden_def(__fpclassify)
    Calls:  none
 ***********************************************************************/
 
+int __isnormalf ( float x );
 int __isnormalf ( float x )
 {
    unsigned int iexp;
@@ -136,6 +137,7 @@ int __isnormalf ( float x )
 }
 
 
+int __isnormal ( double x );
 int __isnormal ( double x )
 {
        return ( __fpclassify ( x ) == FP_NORMAL );
index 83bc029..37d5b93 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <features.h>
 
+void __stub2(void);
 void __stub2(void)
 {
        return;
index 72f3d5d..38b10ff 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <features.h>
 
+void __stub1(void);
 void __stub1(void)
 {
        return;