This is the mail archive of the gcc-patches@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: Patch for various warnings in gcc


>  > Wasn't there a gcc extension ala "int a = a;" to silence it?
> 
> I've never heard about that extension.  What does it do and mean?

The last time this discussion came up, the recommended solution was

	(void) a;

which, assuming A was not volatile, generated no code, was fully legal,
and silenced the warning.

RJL


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