Bonjour,

Lorsque l'on compile un projet avec Mingw, il apparait des warning dans les fichiers d'en-tête :
Citation Envoyé par x
E:\CodeBlocks\include\stdlib.h:314: warning: no previous prototype for 'strtof'
E:\CodeBlocks\include\stdlib.h:326: warning: no previous prototype for 'wcstof'
E:\CodeBlocks\include\stdlib.h:472: warning: no previous prototype for 'llabs'
E:\CodeBlocks\include\stdio.h:219: warning: no previous prototype for 'vsnprintf'
E:\CodeBlocks\include\stdio.h:258: warning: no previous prototype for 'getc'
E:\CodeBlocks\include\stdio.h:265: warning: no previous prototype for 'putc'
E:\CodeBlocks\include\stdio.h:272: warning: no previous prototype for 'getchar'
E:\CodeBlocks\include\stdio.h:279: warning: no previous prototype for 'putchar'
E:\CodeBlocks\include\stdio.h:401: warning: no previous prototype for 'fopen64'
E:\CodeBlocks\include\stdio.h:413: warning: no previous prototype for 'ftello64'
E:\CodeBlocks\include\stdio.h:468: warning: no previous prototype for 'vsnwprintf'
E:\CodeBlocks\include\string.h:97: warning: no previous prototype for 'strcasecmp'
E:\CodeBlocks\include\string.h:103: warning: no previous prototype for 'strncasecmp'
E:\CodeBlocks\include\stdlib.h:314: warning: no previous prototype for 'strtof'
E:\CodeBlocks\include\stdlib.h:326: warning: no previous prototype for 'wcstof'
E:\CodeBlocks\include\stdlib.h:472: warning: no previous prototype for 'llabs'
E:\CodeBlocks\include\stdio.h:219: warning: no previous prototype for 'vsnprintf'
E:\CodeBlocks\include\stdio.h:258: warning: no previous prototype for 'getc'
E:\CodeBlocks\include\stdio.h:265: warning: no previous prototype for 'putc'
E:\CodeBlocks\include\stdio.h:272: warning: no previous prototype for 'getchar'
E:\CodeBlocks\include\stdio.h:279: warning: no previous prototype for 'putchar'
E:\CodeBlocks\include\stdio.h:401: warning: no previous prototype for 'fopen64'
E:\CodeBlocks\include\stdio.h:413: warning: no previous prototype for 'ftello64'
E:\CodeBlocks\include\stdio.h:468: warning: no previous prototype for 'vsnwprintf'
E:\CodeBlocks\include\stdlib.h:314: warning: no previous prototype for 'strtof'
E:\CodeBlocks\include\stdlib.h:326: warning: no previous prototype for 'wcstof'
E:\CodeBlocks\include\stdlib.h:472: warning: no previous prototype for 'llabs'
E:\CodeBlocks\include\stdio.h:219: warning: no previous prototype for 'vsnprintf'
E:\CodeBlocks\include\stdio.h:258: warning: no previous prototype for 'getc'
E:\CodeBlocks\include\stdio.h:265: warning: no previous prototype for 'putc'
E:\CodeBlocks\include\stdio.h:272: warning: no previous prototype for 'getchar'
E:\CodeBlocks\include\stdio.h:279: warning: no previous prototype for 'putchar'
E:\CodeBlocks\include\stdio.h:401: warning: no previous prototype for 'fopen64'
E:\CodeBlocks\include\stdio.h:413: warning: no previous prototype for 'ftello64'
E:\CodeBlocks\include\stdio.h:468: warning: no previous prototype for 'vsnwprintf'
E:\CodeBlocks\include\stdlib.h:314: warning: no previous prototype for 'strtof'
E:\CodeBlocks\include\stdlib.h:326: warning: no previous prototype for 'wcstof'
E:\CodeBlocks\include\stdlib.h:472: warning: no previous prototype for 'llabs'
Rien de bien méchant mais c'est pénible de rechercher ses erreurs entre les lignes.

Apparemment c'est possible de les corriger :
Citation Envoyé par [url]http://emmanuel-delahaye.developpez.com/codage.htm#cfg_compilo_gcc[/url]
Attention ce reglage révèle certains défauts dans les headers de MinGW. La correction est possible, mais uniquement si on sait ce qu'on fait. Je n'en dirai donc pas plus ici.
Mais quand je vois dans stdio.h :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
_CRTIMP double __cdecl	strtod	(const char*, char**);
#if !defined __NO_ISOCEXT  /* extern stub in static libmingwex.a */
__CRT_INLINE float __cdecl strtof (const char *nptr, char **endptr)
  { return (strtod (nptr, endptr));}
Je ne vois pas d'où viens le problème

Quelqu'un a déjà corrigé ces erreurs ?