libiberty/regex.c
Ben Elliston
bje@redhat.com
Thu Aug 30 15:33:00 GMT 2001
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;
{
More information about the Binutils
mailing list