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: [C++ PATCH] Avoid bogus -Wunused-value warnings (PR c++/39875)


Jakub Jelinek wrote:

> 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
> 
> 	PR c++/39875
> 	* cvt.c (convert_to_void) <case INDIRECT_REF>: Only warn about
> 	-Wunused-value if implicit.

OK.

While we're here, let's improve the convert_to_void documentation.

In particular, instead of:

   IMPLICIT is tells us the context of an implicit void conversion.  */

Let's say:

IMPLICIT is non-NULL iff an expression is being implicitly converted; it
is NULL when the user is explicitly converting an expression to void via
a cast.  When non-NULL, IMPLICIT is a string indicating the context of
the implicit conversion.

That's not a very i18n friendly interface, but at least it's a better
documentation of the existing interface.

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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