This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Dealing with output of clang --analyze
On Sunday 14 March 2010 17:43:49 Joel Brobecker wrote:
> > In the case where value_type(called_method) returns NULL, the
> > if is not executed and the second TYPE_TARGET_TYPE will do a
> > NULL pointer dereference. There are at least 66 of these cases
> > in the source. Is it worth addressing them?
>
> In the particular example you chose, I do not think that there is
> a problem, because called_method should always have a type. Not
> sure about the others, we'd have to look at them individually,
> I guess.
So we could remove the type && from the if? What would be the preferred way to
see the other cases of warnings? Posting it on the mailinglist? sticking it in
the bugtracker? creating a website with the information?
regards
holger