GCC 4.5.0 Reports invalid warning
James Dennett
james.dennett@gmail.com
Fri Jul 16 00:48:00 GMT 2010
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
More information about the Gcc
mailing list