Browse Source

Some more prototypes, enable missing-prototypes/declarations warnings for now

Peter S. Mazinger 18 years ago
parent
commit
1466eb283c
6 changed files with 11 additions and 4 deletions
  1. 1 1
      Rules.mak
  2. 4 2
      libc/misc/internals/__uClibc_main.c
  3. 2 1
      libcrypt/md5.c
  4. 2 0
      libm/fpmacros.c
  5. 1 0
      libnsl/nsl.c
  6. 1 0
      libresolv/resolv.c

+ 1 - 1
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)))

+ 4 - 2
libc/misc/internals/__uClibc_main.c

@@ -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)
 {

+ 2 - 1
libcrypt/md5.c

@@ -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;

+ 2 - 0
libm/fpmacros.c

@@ -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 );

+ 1 - 0
libnsl/nsl.c

@@ -9,6 +9,7 @@
 
 #include <features.h>
 
+void __stub2(void);
 void __stub2(void)
 {
 	return;

+ 1 - 0
libresolv/resolv.c

@@ -9,6 +9,7 @@
 
 #include <features.h>
 
+void __stub1(void);
 void __stub1(void)
 {
 	return;