![]() |
warning: assignment from incompatible pointer type warning in a function poiter
hello there,
I am writing a C program in which I need a function pointer to be assigned. The code is as follows :
typedef struct nsmail_inputstream {This end up with the following warnings and I can't figure out why please help me, warning: assignment from incompatible pointer type Thanks in advace. --jakh |
Seems to work for me :confused:
:
#include <stdio.h>:
$ gcc -std=c99 -Wall -Wextra -pedantic example.c -o example |
jakh, what compiler are you using?
|
hi all,
Thanks everybody for quick reply, My compiler is gcc and I used the following options.(I have included the required header files etc..) gcc -g -Wall test.c yeah it should work , but I don't know why it gives such warnings. hey Jessehk, I copy and paste this code and tried , again it worked fine, Thank your for your help |
Does Test_read have the same declaration as the function pointer?
|
yeah it is ...
please see the above code fragment. Thank you --jakh |
| All times are GMT -5. The time now is 2:58 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC