Erreur : void value not ignored as it ought to be
C'est une des errreurs que je retrouve à la compilation des lignes suivantes :
Code:
1 2
| ligne 280: (char *)(Bitmap.bmBits) [0]
ligne 281: = (char *)(Bitmap.bmBits) [0]; |
Voilà le résultat précis de la compilation :
C:\C\tmp\TraitementBitmap\main.c In function `WindowProcedure':
280 C:\C\tmp\TraitementBitmap\main.c [Warning] dereferencing `void *' pointer
281 C:\C\tmp\TraitementBitmap\main.c void value not ignored as it ought to be
281 C:\C\tmp\TraitementBitmap\main.c [Warning] dereferencing `void *' pointer
281 C:\C\tmp\TraitementBitmap\main.c void value not ignored as it ought to be
C:\C\tmp\TraitementBitmap\Makefile.win [Build Error] [main.o] Error 1
Note : le champ bmBits d'une stucture BITMAP est de type LPVOID (je suis sur que ça équivaut à void * mais je n'ai pas réussi à trouver "typedef LPVOID void *" dans les fichiers d'en-tête Windows)