summaryrefslogtreecommitdiff
path: root/gl/lib/regex_internal.h.diff
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-10-30 18:58:58 -0600
committerEric Blake <ebb9@byu.net>2009-11-02 06:34:24 -0700
commit8fe40b84bd8dbb0d1e908422eb68a17c9f254754 (patch)
tree3d69b802f17ea2957625a5bd8a58c0e8ff431631 /gl/lib/regex_internal.h.diff
parent565e5f6827672bdc6510b8b5a839831ab097c5a1 (diff)
downloadcoreutils-8fe40b84bd8dbb0d1e908422eb68a17c9f254754.tar.xz
build: avoid some warnings
* gl/lib/mbsalign.c (mbsalign): Mark unused parameter. * bootstrap.conf (gnulib_modules): Remove obsolete rename-dest-slash. * gnulib-tests/Makefile.am (AM_CFLAGS): Reduce set of warnings for gnulib tests. * gl/modules/rename-tests.diff (Makefile.am): New file, to add LIBINTL to LDADD, since we avoid canonicalize-lgpl module. * gl/lib/regcomp.c.diff (regerror, calc_next) (build_collating_symbol, parse_bracket_element, build_equiv_class) (free_tree): Mark unused parameters. * gl/lib/regex_internal.h.diff (re_string_elem_size_at): New file, to mark unused parameters. * gl/lib/printf-args.c.diff (PRINTF_FETCHARGS): New file, to avoid type mismatch. * gl/lib/vasnprintf.c (VASNPRINTF): New file, to avoid shadowing local variable name. * .gitignore: Ignore temporary build artifacts.
Diffstat (limited to 'gl/lib/regex_internal.h.diff')
-rw-r--r--gl/lib/regex_internal.h.diff14
1 files changed, 14 insertions, 0 deletions
diff --git a/gl/lib/regex_internal.h.diff b/gl/lib/regex_internal.h.diff
new file mode 100644
index 000000000..d1506a6f5
--- /dev/null
+++ b/gl/lib/regex_internal.h.diff
@@ -0,0 +1,14 @@
+diff --git i/lib/regex_internal.h w/lib/regex_internal.h
+index 859832f..3c7fe06 100644
+--- i/lib/regex_internal.h
++++ w/lib/regex_internal.h
+@@ -826,7 +826,8 @@ re_string_wchar_at (const re_string_t *pstr, Idx idx)
+
+ static int
+ internal_function __attribute ((pure))
+-re_string_elem_size_at (const re_string_t *pstr, Idx idx)
++re_string_elem_size_at (const re_string_t *pstr _UNUSED_PARAMETER_,
++ Idx idx _UNUSED_PARAMETER_)
+ {
+ # ifdef _LIBC
+ const unsigned char *p, *extra;