This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]