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/39889] [4.4 Regression] Bogus -Wunused-value warning



------- Comment #3 from jakub at gcc dot gnu dot org  2009-04-26 18:53 -------
Subject: Bug 39889

Author: jakub
Date: Sun Apr 26 18:53:41 2009
New Revision: 146812

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146812
Log:
        PR c/39889
        * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.

        * gcc.dg/Wunused-value-3.c: New test.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/Wunused-value-3.c
Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/stmt.c
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


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


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