Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!JUNE.CS.WASHINGTON.EDU!pardo From: pardo@JUNE.CS.WASHINGTON.EDU Newsgroups: gnu.gcc Subject: A question about warnings Message-ID: <8904251426.AA14100@june.cs.washington.edu> Date: 25 Apr 89 14:26:39 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 15 In `fu.h', I have a function definition for a function that takes a struct pointer. The struct pointer is not known in all clients of `fu.h'. The struct pointer is used as an abstract data type. I get a warning message. extern void f (struct rtl_t const *rtl); `fu.h':49: warning: `struct rtl_t' declared inside parameter list Now the question: why is this a warning? I could instead declare the struct to be an explicitly `empty' type, but that seems to me to be no more useful and it, too, will generate a warning message. ;-D on ( Curious in Seattle ) Pardo