This is the mail archive of the gcc-bugs@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]

[Bug c/50179] [4.6/4.7 Regression] wrong "set but not used" warning


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50179

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-08-26 14:37:25 UTC ---
Author: jakub
Date: Fri Aug 26 14:37:22 2011
New Revision: 178110

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=178110
Log:
    PR c/50179
    * c-typeck.c (c_process_expr_stmt): Skip over nops and
    call mark_exp_read even if exprv is ADDR_EXPR.

    * c-c++-common/Wunused-var-14.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/Wunused-var-14.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-typeck.c
    trunk/gcc/testsuite/ChangeLog


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