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

Re: Fwd: Fix an issue in unused value warning for C++ frontend (PR/39551)


On Tue, Apr 14, 2009 at 4:17 PM, Jason Merrill <jason@redhat.com> wrote:
> Another solution would be to set TREE_NO_WARNING on the INDIRECT_REF when we
> add it.
>
> Jason
>

Yes, that sounds more elegant (and in that case, I probably don't need
the 'contains_builtin_function_call' helper routine). I will put
together a new patch that sets TREE_NO_WARNING when we build a new
INDIRECT_REF in 'build_over_call'. (Should I be worrying about any
other places besides 'build_over_call'?) Thanks,

Le-chun


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