This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/30729] [4.1/4.2 Regression] value computed is not used warning with unused result of va_arg
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Mar 2007 23:20:38 -0000
- Subject: [Bug middle-end/30729] [4.1/4.2 Regression] value computed is not used warning with unused result of va_arg
- References: <bug-30729-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from pinskia at gcc dot gnu dot org 2007-03-09 23:20 -------
Subject: Bug 30729
Author: pinskia
Date: Fri Mar 9 23:20:28 2007
New Revision: 122769
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122769
Log:
2007-03-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR middle-end/30729
* stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
effects unknown to this function, return early.
2007-03-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR middle-end/30729
* gcc.dg/Wunused-value-2.c: New testcase.
Added:
branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/Wunused-value-2.c
- copied unchanged from r122027,
trunk/gcc/testsuite/gcc.dg/Wunused-value-2.c
Modified:
branches/gcc-4_2-branch/gcc/ChangeLog
branches/gcc-4_2-branch/gcc/stmt.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30729