test-xvasprintf: avoid 'const' discard warnings
[gnulib.git] / ChangeLog
index edb9122..456a793 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,124 @@
+2010-06-11  Jim Meyering  <meyering@redhat.com>
+
+       test-xvasprintf: avoid 'const' discard warnings
+       * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
+       "const" when assigning from literal strings.
+       (test_xasprintf): Add "void" in function argument list to placate
+       -Wstrict-prototypes and to be consistent with test_xvasprintf above.
+
+       tests: avoid compilation warnings in argmatch and exclude tests...
+       in packages that define ARGMATCH_DIE_DECL, like coreutils.
+       * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
+       Since it always exits, declare with the "noreturn" attribute.
+       * tests/test-argmatch.c: Likewise.
+
+       tests: avoid 'const' discard warnings in mbsstr tests
+       * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
+       * tests/test-mbsstr2.c (main): Likewise.
+
+       test-verify: avoid warning from gcc's -Wmissing-declarations
+       * tests/test-verify.c (function): Declare to be static.
+
+       test-inttostr.c: include <string.h> for use of strcmp
+       * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
+
+       test-linkat: avoid failed assertion on "other" architectures
+       * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
+       lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
+       sparc: https://bugs.launchpad.net/bugs/591968
+
+2010-06-11  Jim Meyering  <meyering@redhat.com>
+
+       printf.m4: avoid autoconf's "Expanded Before Required" warning
+       * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
+       rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
+       autoconf warning.
+
+2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
+
+       Replacement header templates are now named with ".in", not "_".
+       * doc/gnulib-intro.texi: Correct.
+
+2010-06-10  Jim Meyering  <meyering@redhat.com>
+
+       inttostr-tests: depend on snprintf, not snprintf-posix
+       * modules/inttostr-tests (Depends-on): Depend on snprintf, not
+       snprintf-posix, to avoid this aclocal failure:
+         missing file gnulib-tests/vasnprintf.c
+         configure.ac:45: error: expected source file, required through \
+         AC_LIBSOURCES, not found
+
+2010-06-10  Jim Meyering  <meyering@redhat.com>
+
+       inttostr: add a new function, inttostr, and tests
+       The namesake function was not available.  The existence of the
+       template file, inttostr.c makes its addition nontrivial.
+       * lib/anytostr.c: Rename from inttostr.c.
+       (anytostr): Rename from inttostr.
+       * lib/inttostr.c: New file.
+       * modules/inttostr (Files): Add anytostr.c.
+       (Makefile.am): Set lib_SOURCES instead of ...
+       * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
+       * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
+       * lib/offtostr.c: Likewise.
+       * lib/uinttostr.c: Likewise.
+       * lib/umaxtostr.c: Likewise.
+       * modules/inttostr-tests: New file.
+       * tests/test-inttostr.c: New file.  Test these functions.
+
+2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
+            Bruno Haible  <bruno@clisp.org>
+
+       Add "Extending Gnulib" chapter to manual.
+       * doc/gnulib.texi (Writing Modules): Add cross-reference to new
+       chapter.
+       (Extending Gnulib): New chapter.
+       * doc/gnulib-intro.texi (Openness): Add cross-reference to new
+       chapter.
+
+2010-06-09  Bruno Haible  <bruno@clisp.org>
+
+       Avoid relocwrapper link errors due to gnulib replacement functions.
+       * lib/areadlink.c: Use the system's malloc, realloc functions.
+       (areadlink): Set errno to ENOMEM explicitly.
+       * modules/areadlink (Depends-on): Remove malloc-posix.
+       Reported by Ben Pfaff <blp@cs.stanford.edu>.
+
+2010-06-09  Bruno Haible  <bruno@clisp.org>
+
+       Avoid relocwrapper link errors due to gnulib replacement functions.
+       * lib/canonicalize-lgpl.c: Use the system's malloc function.
+       * lib/malloca.c: Likewise.
+       * lib/relocatable.c: Likewise.
+       * lib/progreloc.c: Use the system's malloc, sprintf functions.
+       * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
+       * lib/setenv.c: Use the system's malloc, realloc functions.
+       * lib/strerror.c: Use the system's sprintf function.
+       Reported by Ben Pfaff <blp@cs.stanford.edu>.
+
+2010-06-04  Bruno Haible  <bruno@clisp.org>
+
+       Prefer documented low-level autoconf macro names.
+       * m4/lib-link.m4: Use m4_translit instead of translit.
+       * m4/environ.m4: Likewise.
+       * m4/mathfunc.m4: Likewise.
+       * m4/onceonly.m4: Likewise.
+       * m4/stdint.m4: Likewise.
+       Suggested by Eric Blake.
+
+2010-06-04  Martin Lambers  <marlam@marlam.de>
+            Bruno Haible  <bruno@clisp.org>
+
+       havelib: Allow library names with '+' characters.
+       * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
+       AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
+
+2010-06-09  Bruno Haible  <bruno@clisp.org>
+
+       Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
+       * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
+       realloc failed.
+
 2010-06-08  Peter Simons  <simons@cryp.to>
 
        maint.mk: make the news-check rule more configurable