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: [PATCH] Fix warning in tree-diagnostic.h.


On Fri, Nov 06, 2015 at 03:16:37PM -0700, Jeff Law wrote:
> On 11/03/2015 02:57 AM, Dominik Vogt wrote:
> >On Mon, Nov 02, 2015 at 09:57:22AM -0700, Jeff Law wrote:
> >>On 11/02/2015 06:26 AM, Dominik Vogt wrote:
> >>>The attached patch fixes the annoying warnings generated by
> >>>diagnostic_set_last_function.
> >>Can you point out what warning you're fixing?
> >
> >Sure.  toplec.c calls diagnostic_set_last_function with a NULL
> >pointer as the second argument, and cp/typeck.c complains about
> >it.  Ah, it seems the *current* version of Gcc does not generate
> >the warning, but the old one (4.8.5) I used to compile does.  So,
> >it may or may not be worth to apply the patch.
> It looks like that was changed explicitly in 2014 (see the history
> of g++.dg/abi/offsetof.C).  I'm not a C++ expert, but it appears
> this kind of use is considered OK these days.

All right, if this is the case it's not worth "fixing".  I'll keep
ignoring gcc-4.8's message.

Ciao

Dominik ^_^  ^_^

-- 

Dominik Vogt
IBM Germany


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