This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC 4.5.0 Reports invalid warning


On Thu, Jul 15, 2010 at 5:31 PM, J Decker <d3ck0r@gmail.com> wrote:
> Oh not so bad then, I can just add at the beginning...
>
> typedef struct a *NeverUsedDefinition;
>
> and now it's happy? ?And that makes good coding how? If I never
> actually use 'NeverUsedDefinition'? ?Actually this 'feature' now
> causes useless and unused declartions to be created.

You don't need to give it a useless name.  You can just do
  struct a;
to declare a struct called a.

-- James


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]