Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!rutgers!labrea!polya!shap From: shap@polya.Stanford.EDU (Jonathan S. Shapiro) Newsgroups: gnu.gcc Subject: Re: A question about warnings Message-ID: <8764@polya.Stanford.EDU> Date: 25 Apr 89 22:55:32 GMT References: <8904251426.AA14100@june.cs.washington.edu> Sender: Jonathan S. Shapiro Reply-To: shap@polya.Stanford.EDU (Jonathan S. Shapiro) Distribution: gnu Organization: Stanford University Lines: 15 In article <8904251426.AA14100@june.cs.washington.edu> pardo@JUNE.CS.WASHINGTON.EDU writes: >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 This seems to be an error in the GNU compiler. Unless some silly ANSI-ness caused this to happen, the usage you are describing is valid, and sufficiently widely used that the compiler should not complain about it. Jon