still avoid unused-parameter warnings, but do it cleanly
[gnulib.git] / ChangeLog
index 254e1db..3d87cd3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,173 @@
+2009-02-05  Jim Meyering  <meyering@redhat.com>
+
+       still avoid unused-parameter warnings, but do it cleanly
+       * lib/fsusage.c (UNUSED_PARAM): Remove definition.
+       (get_fs_usage): Cast to void instead.
+       * lib/mountlist.c (UNUSED_PARAM): Remove definition.
+       (dev_from_mount_options, read_file_system_list): Cast to void.
+       Prompted by Bruno Haible.
+
+2009-02-04  Jim Meyering  <meyering@redhat.com>
+
+       fsusage.c: correct copyright year
+       * lib/fsusage.c: Reflect year in which the change is pushed into
+
+       avoid misc. warnings
+       * lib/fsusage.c (UNUSED_PARAM): Define.
+       (get_fs_usage): Mark parameter "disk" as unused.
+       * lib/getugroups.c (getgrent): Use "void" in prototype.
+       * lib/mountlist.c: Mark unused parameters.
+       (read_file_system_list): Declare a local with "const".
+       * lib/nanosleep.c (getnow): Declare static.
+       * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
+
+       dirfd: set errno upon failure
+       * lib/dirfd.c: Include <errno.h>.
+       Set errno to ENOTSUP when returning -1.
+       * modules/dirfd (Depends-on): Add errno.
+       Suggested by John Kodis <kodis@comcast.net>.
+
+2009-02-01  Bruno Haible  <bruno@clisp.org>
+
+       Don't assume sizeof (long) >= sizeof (void *).
+       * lib/memcmp.c: Include stdint.h.
+       (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
+       srcp2 to 'const byte *'.
+       (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
+       types to uintptr_t.
+       (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
+       * modules/memcmp (Depends-on): Add stdint.
+       Reported by Ozkan Sezer <sezeroz@gmail.com>.
+
+2009-01-30  Eric Blake  <ebb9@byu.net>
+
+       fix more require-before-expand issues
+       * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
+       expand, AC_PROG_AWK.
+       * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
+
+2009-01-28  Eric Blake  <ebb9@byu.net>
+
+       version-etc: use consistent URL formatting
+       * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
+       Improve formatting.  Use fputs for string without %.
+
+2009-01-28  Jim Meyering  <meyering@redhat.com>
+
+       00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
+       * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
+       "underquoted definition of NAME" from autoconf-2.59.
+
+2009-01-28  Bruno Haible  <bruno@clisp.org>
+
+       * doc/gnulib.texi: Add "Obsolete modules" to index.
+
+2009-01-28  Jim Meyering  <meyering@redhat.com>
+
+       useless-if-before-free: recognize more variants
+       * build-aux/useless-if-before-free: Also recognize e.g.,
+       if (NULL != p) free (p);
+
+2009-01-27  Mark McLoughlin  <markmc@redhat.com>
+
+       test-getaddrinfo: skip (don't fail) this test when there's no network
+       * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
+       on the presumption that it means you lack network access.
+
+2009-01-26  Jim Meyering  <meyering@redhat.com>
+
+       fflush: avoid warnings on modern systems
+       * lib/fflush.c (rpl_fflush): Move declarations of locals,
+       pos and result, into scopes where they're used.
+
+2009-01-26  Eric Blake  <ebb9@byu.net>
+
+       Silence warning reintroduced by recent extensions patch.
+       * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
+       (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
+       autoconf.
+
+       Backport improved autoconf semantics of AC_DEFUN_ONCE.
+       * m4/00gnulib.m4: New file.
+       * gnulib-tool (func_get_filelist): Always use it.
+       * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
+       Reported by Bruno Haible, with suggestions from Paolo Bonzini.
+
+2009-01-25  Bruno Haible  <bruno@clisp.org>
+
+       Make test-quotearg work on MacOS X and AIX.
+       * tests/test-quotearg.sh: New file.
+       * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
+       * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
+       * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
+       include <libintl.h>.
+       (fake_locale): Remove variable.
+       (gettext, dgettext, dcgettext): Remove functions.
+       (main): Instead of setting a fake locale, set a real locale. Call
+       textdomain and bindtextdomain.
+       * modules/quotearg-tests (Files): Add the new files.
+       (Depends-on): Add gettext, setenv, unsetenv.
+       (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
+       (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
+       Augment TESTS_ENVIRONMENT.
+
+2009-01-25  Bruno Haible  <bruno@clisp.org>
+
+       * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
+       fr_FR.ISO8859-1 locale on MacOS X.
+       * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
+       ja_JP.eucJP locale on MacOS X.
+       * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
+       zh_CN.GB18030 locale on MacOS X.
+
+2009-01-25  Bruno Haible  <bruno@clisp.org>
+
+       Avoid link errors on MacOS X 10.3.
+       * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
+       * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
+
+2009-01-25  Bruno Haible  <bruno@clisp.org>
+
+       * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
+       * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
+       * modules/pipe (Files): Remove m4/posix_spawn.m4.
+       (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
+       posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
+       posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
+       posix_spawnattr_init, posix_spawnattr_setsigmask,
+       posix_spawnattr_setflags, posix_spawnattr_destroy.
+
+       * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
+       * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
+       * modules/execute (Files): Remove m4/posix_spawn.m4.
+       (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
+       posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
+       posix_spawnattr_init, posix_spawnattr_setsigmask,
+       posix_spawnattr_setflags, posix_spawnattr_destroy.
+
+2009-01-25  Bruno Haible  <bruno@clisp.org>
+
+       * lib/glthread/threadlib.c: Include <stdlib.h>.
+
+2009-01-25  Bruno Haible  <bruno@clisp.org>
+
+       * lib/glthread/threadlib.c (dummy): New declaration.
+
+2009-01-25  Bruno Haible  <bruno@clisp.org>
+
+       * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
+       multibyte characters also for the GB18030 encoding. Don't crash when
+       the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
+
+2009-01-25  Bruno Haible  <bruno@clisp.org>
+
+       Avoid redefining 'struct random_data' on OSF/1 5.1.
+       * lib/stdlib.in.h: Include <random.h> if it exists.
+       * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
+       HAVE_RANDOM_H. Include <random.h> when testing whether
+       'struct random_data' exists.
+       * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
+
 2009-01-25  Bruno Haible  <bruno@clisp.org>
 
        Don't install charset.alias on MacOS X >= 10.3.