public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/66722] New: libiberty/pex-unix.c warning: initialization from incompatible pointer type
@ 2015-07-01 14:16 richard at netbsd dot org
2021-08-24 16:30 ` [Bug other/66722] libiberty/pex-unix.c and pex_unix_wait returns int but pex_funcs expects pid_t pinskia at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: richard at netbsd dot org @ 2015-07-01 14:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66722
Bug ID: 66722
Summary: libiberty/pex-unix.c warning: initialization from
incompatible pointer type
Product: gcc
Version: 4.9.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: richard at netbsd dot org
Target Milestone: ---
Created attachment 35886
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35886&action=edit
pex_unix_wait returns pid_t (as does wait())
noticed while building:
>../../gcc-4.9.3/libiberty/pex-unix.c:325:3: warning: initialization from incompatible pointer type
>../../gcc-4.9.3/libiberty/pex-unix.c:325:3: warning: (near initialization for 'funcs.wait')
>../../gcc-4.9.3/libiberty/pex-unix.c:325:3: warning: initialization from incompatible pointer type
>../../gcc-4.9.3/libiberty/pex-unix.c:325:3: warning: (near initialization for 'funcs.wait')
attached patch get over the int/pid_t confusion:
Also, from inspection I noticed waitpid() needs correction too.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug other/66722] libiberty/pex-unix.c and pex_unix_wait returns int but pex_funcs expects pid_t
2015-07-01 14:16 [Bug other/66722] New: libiberty/pex-unix.c warning: initialization from incompatible pointer type richard at netbsd dot org
@ 2021-08-24 16:30 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-24 16:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66722
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-08-24
Summary|libiberty/pex-unix.c |libiberty/pex-unix.c and
|warning: initialization |pex_unix_wait returns int
|from incompatible pointer |but pex_funcs expects pid_t
|type |
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Keywords| |build
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-24 16:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-01 14:16 [Bug other/66722] New: libiberty/pex-unix.c warning: initialization from incompatible pointer type richard at netbsd dot org
2021-08-24 16:30 ` [Bug other/66722] libiberty/pex-unix.c and pex_unix_wait returns int but pex_funcs expects pid_t pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).