Path: utzoo!attcan!uunet!mcsun!unido!gmdzi!wittig From: wittig@gmdzi.UUCP (Georg Wittig) Newsgroups: comp.lang.c Subject: Re: Pointer Problem Message-ID: <2081@gmdzi.UUCP> Date: 15 Mar 90 12:27:44 GMT References: <9003100821.AA21852@spencer.cs.uoregon.edu> Organization: GMD - The German National Research Centre for Computer Science Lines: 19 liang@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@gmdzi.uucp phone: (+49 2241) 14-2294 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Freedom's just another word for nothing left to lose" (Kris Kristofferson)