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++/44361] -Wunused-but-set-variable vs. explicit void cast



------- Comment #6 from jakub at gcc dot gnu dot org  2010-06-05 15:02 -------
Subject: Bug 44361

Author: jakub
Date: Sat Jun  5 15:02:32 2010
New Revision: 160318

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160318
Log:
        PR c++/44361
        * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
        * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
        statement expression.

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

Added:
    trunk/gcc/testsuite/c-c++-common/Wunused-var-9.c


-- 


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


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