Pointer Problem

Georg Wittig wittig at gmdzi.UUCP
Thu Mar 15 22:27:44 AEST 1990


liang at CS.UOREGON.EDU writes:

>	"parser.c(167):warning 47: '=' : different levels of indirection"
...
>   struct ast *root, *final_ast;
...
>    final_ast = program(root);  /* This is the line 167, error happen here */

	At that point, the type of ``program'' is not known to the compiler, so
	the default applies: ``program'' gets implicitly type ``function
	returning int''.

	Declare ``program'' before that line 167!

-- 
Georg Wittig   GMD-Z1.BI   P.O. Box 1240   D-5205 St. Augustin 1 (West Germany)
email: wittig at gmdzi.uucp   phone: (+49 2241) 14-2294
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Freedom's just another word for nothing left to lose" (Kris Kristofferson)



More information about the Comp.lang.c mailing list