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 #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-08-26 14:48:13 UTC ---
Author: jakub
Date: Fri Aug 26 14:48:10 2011
New Revision: 178112

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=178112
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:
    branches/gcc-4_6-branch/gcc/testsuite/c-c++-common/Wunused-var-14.c
Modified:
    branches/gcc-4_6-branch/gcc/ChangeLog
    branches/gcc-4_6-branch/gcc/c-typeck.c
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog


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