OSDN Git Service

Resolve some "implicit function declaration" warnings.
authorKeith Marshall <keithmarshall@users.sourceforge.net>
Fri, 18 Mar 2016 21:39:57 +0000 (21:39 +0000)
committerKeith Marshall <keithmarshall@users.sourceforge.net>
Fri, 18 Mar 2016 21:39:57 +0000 (21:39 +0000)
mingwrt/ChangeLog
mingwrt/cpu_features.h
mingwrt/crt1.c
mingwrt/setargv.c

index 3c7b712..a600cd0 100644 (file)
@@ -1,5 +1,13 @@
 2016-03-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
 
+       Resolve some "implicit function declaration" warnings.
+
+       * setargv.c (isspace): Include <ctype.h> for declaration.
+       * cpu_features.h (__cpu_features_init): Declare function prototype.
+       * crt1.c (_setargv): Likewise; (this isn't needed elsewhere).
+
+2016-03-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
        Factor out <stdlib.h> vs. <wchar.h> duplicate declarations.
 
        * include/stdlib.h [__WCHAR_H_SOURCED__]
index a19f875..8ec5ac1 100644 (file)
@@ -15,6 +15,7 @@
 #define  _CRT_3DNOWP           0x0200
 
 extern unsigned int __cpu_features;
+extern void __cpu_features_init (void);
 
 /* Currently we use this in fpenv  functions */
 #define __HAS_SSE  __cpu_features & _CRT_SSE
index 8730606..c207702 100644 (file)
@@ -30,6 +30,7 @@ extern void _pei386_runtime_relocator (void);
 /* Main program entry point, and argument initialization hook.
  */
 extern int main (int, char **, char **);
+extern void _setargv (void);
 
 int    _argc = 0;
 char **_argv = NULL;
index 3e823e8..09e543c 100644 (file)
@@ -35,6 +35,7 @@
  */
 #include <glob.h>
 #include <string.h>
+#include <ctype.h>
 
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>