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]

libiberty/regex.c


There are dozens of warnings in the newly installed libiberty regex.c.
Here is a start at eliminating them -- okay to commit?

2001-08-31  Ben Elliston  <bje@redhat.com>

	* regex.c: Include "libiberty.h".
	(regerror): Mark preg argument as unused.

--- regex.c     2001/08/23 16:36:45     1.5
+++ regex.c     2001/08/30 22:29:58
@@ -35,6 +35,7 @@
 #ifdef HAVE_CONFIG_H
 # include <config.h>
 #endif
+#include "libiberty.h"
 
 #ifndef PARAMS
 # if defined __GNUC__ || (defined __STDC__ && __STDC__)
@@ -8222,7 +8223,7 @@
 size_t
 regerror (errcode, preg, errbuf, errbuf_size)
     int errcode;
-    const regex_t *preg;
+    const regex_t *preg ATTRIBUTE_UNUSED;
     char *errbuf;
     size_t errbuf_size;
 {


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