Summary: | read-rtl.c:670: warning: missing sentinel in function call | ||
---|---|---|---|
Product: | gcc | Reporter: | John David Anglin <danglin> |
Component: | middle-end | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gcc-bugs, jbglaw |
Priority: | P2 | Keywords: | build, diagnostic |
Version: | 4.1.0 | ||
Target Milestone: | --- | ||
Host: | vax-dec-ultrix4.3 | Target: | vax-dec-ultrix4.3 |
Build: | vax-dec-ultrix4.3 | Known to work: | |
Known to fail: | Last reconfirmed: | 2005-07-14 00:54:43 | |
Bug Depends on: | |||
Bug Blocks: | 44756 | ||
Attachments: | Preprocessed source. |
Description
John David Anglin
2005-04-14 00:27:22 UTC
Created attachment 8622 [details]
Preprocessed source.
result = concat ("(", cond1, ") && (", cond2, ")", NULL); Looks like someone forgot the cast. (well in most of the time there is a cast, oh well). Subject: Re: read-rtl.c:670: warning: missing sentinel in function call
> result = concat ("(", cond1, ") && (", cond2, ")", NULL);
>
>
> Looks like someone forgot the cast. (well in most of the time there is a cast, oh well).
Casts definitely postdate vax-ultrix ;-) Do we always need a cast in
join_c_conditions?
Dave
Subject: Re: read-rtl.c:670: warning: missing sentinel in function call
> > result = concat ("(", cond1, ") && (", cond2, ")", NULL);
> >
> >
> > Looks like someone forgot the cast. (well in most of the time there is a cast, oh well).
>
> Casts definitely postdate vax-ultrix ;-) Do we always need a cast in
> join_c_conditions?
Looking at /usr/include/sys/_null.h on HP-UX 11.11, it appears that
we only will get a cast if _ANSI_NULL_POINTER is defined. Since we
don't define this, I'm not sure why this problem doesn't also occur
under HP-UX.
Dave
Subject: Re: read-rtl.c:670: warning: missing sentinel in function call
> result = concat ("(", cond1, ") && (", cond2, ")", NULL);
>
>
> Looks like someone forgot the cast. (well in most of the time there is a cast, oh well).
It looks like this could be fixed by including stddef.h after stdio.h
in system.h. stddef.h would then provide an appropriate define for NULL.
Otherwise, stdio.h needs fixing. The define for NULL in system.h is
also probably inadequate if it's ever needed.
Dave
(In reply to dave from comment #5) > Subject: Re: read-rtl.c:670: warning: missing sentinel in function call > > > result = concat ("(", cond1, ") && (", cond2, ")", NULL); > > > > > > Looks like someone forgot the cast. (well in most of the time there is a cast, oh well). > > It looks like this could be fixed by including stddef.h after stdio.h > in system.h. stddef.h would then provide an appropriate define for NULL. > Otherwise, stdio.h needs fixing. The define for NULL in system.h is > also probably inadequate if it's ever needed. > > Dave I see <stddef.h> already included in system.h This doesn't occur anymore. |