This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch/libiberty]: Remove warnings from pex-win32.c
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: dj at redhat dot com
- Date: Fri, 4 Jul 2003 13:19:34 +1000 (EST)
- Subject: [Patch/libiberty]: Remove warnings from pex-win32.c
Hello
The following patch removes warnings from libiberty/pex-win32.c
Tested on i386-pc-mingw32, trunk.
ChangeLog
2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
* pex-win32.c (pexecute): Mark parameters this_pname and
temp_base as unused. Remove unused variables retries,
sleep_interval. Initialize org_stdin, org_stdout.
(pwait): Mark parameter flags as unused.
Index: gcc/libiberty/pex-win32.c
===================================================================
RCS file: /cvs/gcc/gcc/libiberty/pex-win32.c,v
retrieving revision 1.2
diff -c -3 -p -r1.2 pex-win32.c
*** gcc/libiberty/pex-win32.c 3 Jul 2003 04:21:13 -0000 1.2
--- gcc/libiberty/pex-win32.c 4 Jul 2003 01:50:44 -0000
*************** int
*** 136,150 ****
pexecute (program, argv, this_pname, temp_base, errmsg_fmt, errmsg_arg, flags)
const char *program;
char * const *argv;
! const char *this_pname;
! const char *temp_base;
char **errmsg_fmt, **errmsg_arg;
int flags;
{
int pid;
! int pdes[2], org_stdin, org_stdout;
int input_desc, output_desc;
- int retries, sleep_interval;
/* Pipe waiting from last process, to be used as input for the next one.
Value is STDIN_FILE_NO if no pipe is waiting
--- 136,151 ----
pexecute (program, argv, this_pname, temp_base, errmsg_fmt, errmsg_arg, flags)
const char *program;
char * const *argv;
! const char *this_pname ATTRIBUTE_UNUSED;
! const char *temp_base ATTRIBUTE_UNUSED;
char **errmsg_fmt, **errmsg_arg;
int flags;
{
int pid;
! int pdes[2];
! int org_stdin = -1;
! int org_stdout = -1;
int input_desc, output_desc;
/* Pipe waiting from last process, to be used as input for the next one.
Value is STDIN_FILE_NO if no pipe is waiting
*************** int
*** 227,233 ****
pwait (pid, status, flags)
int pid;
int *status;
! int flags;
{
int termstat;
--- 228,234 ----
pwait (pid, status, flags)
int pid;
int *status;
! int flags ATTRIBUTE_UNUSED;
{
int termstat;
http://mobile.yahoo.com.au - Yahoo! Mobile
- Check & compose your email via SMS on your Telstra or Vodafone mobile.