This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
libiberty/regex.c
- To: gcc-patches at gcc dot gnu dot org
- Subject: libiberty/regex.c
- From: Ben Elliston <bje at redhat dot com>
- Date: Fri, 31 Aug 2001 08:32:57 +1000 (EST)
- Cc: binutils at sources dot redhat dot com
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;
{