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: [C] Fix PR57258: unused variable warning is emitted for volatile variables


On Wed, Nov 6, 2013 at 8:40 AM, Mingjie Xing <mingjie.xing@gmail.com> wrote:
> Hi,
>
> Changes:
>
>         * c/c-decl.c (pop_scope): Skip volatile variables while emit
> warnings for unused variables.
>
> Tested on i686-pc-linux-gnu.
>
> OK?

You miss a testcase.

Also why should the warning be omitted for unused automatic
volatile variables?  They cannot be used in any way.

Richard.




> Mingjie


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