Ajouter un commentaire

boissonnfive
[Résolu] warning: passing argument 5 of 'bsearch' from incom

Bonjour,

j'ai le warning suivant et je n'arrive pas à m'en défaire:

Quote:
warning: passing argument 5 of 'bsearch' from incompatible pointer type

voici la ligne qui pose problème:

bsearch(id, textInformationFrame,                                                                              
              sizeof(textInformationFrame)/sizeof(textInformationFrame[0]),                                              
                   sizeof(textInformationFrame[0]), strcmp);

Si je comprends bien, c'est strcmp qui pose problème, mais pourquoi?
Sinon, comment se débarrasser de ce warning (ne plus le voir, avec un pragma par exemple...)?

NOTE:
fichier c compilé avec gcc (version 3 ou 4, je sais plus):
gcc -g -Wall -c file.c

Merci pour toute réponse ou tout début de piste.

Filtered HTML

Plain text

CAPTCHA
Cette question permet de vérifier que vous n'êtes pas un robot spammeur :-)
 EEEE  PPPP   Y   Y  W     W  FFFF 
E P P Y Y W W F
EEE PPPP Y W W W FFF
E P Y W W W F
EEEE P Y W W F