This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to enable -Werror [take 2]
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 19 Jan 2003 21:46:19 -0500
- Subject: Re: Patch to enable -Werror [take 2]
Is the following patch okay for the strsignal warning?
David
* system.h (strsignal): Also declare if no declaration found.
Index: system.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/system.h,v
retrieving revision 1.136
diff -c -p -r1.136 system.h
*** system.h 18 Jan 2003 22:32:06 -0000 1.136
--- system.h 20 Jan 2003 02:41:23 -0000
*************** extern PTR realloc PARAMS ((PTR, size_t)
*** 321,327 ****
/* If the system doesn't provide strsignal, we get it defined in
libiberty but no declaration is supplied. */
! #ifndef HAVE_STRSIGNAL
# ifndef strsignal
extern const char *strsignal PARAMS ((int));
# endif
--- 321,327 ----
/* If the system doesn't provide strsignal, we get it defined in
libiberty but no declaration is supplied. */
! #if !defined (HAVE_STRSIGNAL) || !HAVE_DECL_STRSIGNAL
# ifndef strsignal
extern const char *strsignal PARAMS ((int));
# endif