[PATCH 7/8] find: fix some compiler warnings.

2016-01-02 Thread James Youngman
* find/util.c (check_nofollow): Avoid compiler warnings about comparison between the float variable release and some double constants by changing the constants to be floats, too. * find/parser.c (estimate_file_age_success_rate): Avoid warnings of comparison of float against other types by consisten

[PATCH 2/8] maint: Don't define the gettext-related macro N_ where it is not needed.

2016-01-02 Thread James Youngman
* lib/buildcmd.c: Don't define the macro N_(), since we don't use it. * lib/fdleak.c: Likewise. * lib/safe-atoi.c: Likewise. * lib/regextype.c: Likewise. * lib/listfile.c: Likewise. * locate/bigram.c: Likewise. * locate/code.c: Likewise. * locate/frcode.c: Likewise. * locate/word_io.c: Likewise. *

[no subject]

2016-01-02 Thread James Youngman
These patches rationalize the warrnings produced by --enable-compiler-warnings, fix those warnings, and add a new configure option which makes compiler warnings fatal errors.

[PATCH 4/8] xargs: Avoid unused-macro warnings.

2016-01-02 Thread James Youngman
* xargs/xargs.c (main): Use __STDC_LIMIT_MACROS to avoid a compiler warning about an unused macro. Don't define N_() at all, since we don't use it. --- xargs/xargs.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/xargs/xargs.c b/xargs/xargs.c index 1116cfe..c4d6

[PATCH 6/8] locate: Fix compiler warnings.

2016-01-02 Thread James Youngman
* locate/word_io.c (decode_value): Fix typo in comment. (getword): Remove unused parameter minvalue. * locate/locatedb.h: Adjust declaration of decode_value to remove minvalue parameter. * locate/locate.c: Declare dolocate(). Make that function static. (visit_old_format): Don't pass a minvalue par

[PATCH 5/8] lib: Update the width of the st_nlink field and fix some compiler warnings.

2016-01-02 Thread James Youngman
* lib/listfile.h (list_file): Make the relname parameter const. * lib/listfile.c (list_file): Make the relname parameter const. Remove the unused local variable inode_field_width. Update nlink_width with the greatest width of the st_nlink field, and print the field using the maximum width (as we d

[PATCH 1/8] maint: Remove --I../intl from AM_CPPFLAGS; the directory is gone.

2016-01-02 Thread James Youngman
* find/Makefile.am (AM_CPPFLAGS): Remove -I../intl, since that directory does not exist; it was removed in 2006 by Paul Eggert (commit 9499a434f9da547373fa9d236cb397717ebb0c50). * locate/Makefile.am (AM_CPPFLAGS): Likewise. * xargs/Makefile.am (AM_CPPFLAGS): Likewise. --- find/Makefile.am | 2 +-

[PATCH 8/8] configure: Add option --enable-compiler-warnings-are-errors, limit --enable-compiler-warnings.

2016-01-02 Thread James Youngman
* configure.ac: For --enable-compiler-warnings, don't enable warnings that flag usage common in gnulib (such as variable-length arrays) or which provide no value (such as switch statements lacking a default case that would never be used). Also don't enable some useful warnings (such as missed oppo

[PATCH 3/8] find: Fix a number of compiler warnings (mostly const-correctness).

2016-01-02 Thread James Youngman
* find/find.c (get_current_dirfd): remove unused function. (process_dir): make parameters const: parent, pathname, name. (process_path): make parameters const: parent, pathname, name. (at_top): Modify the function pointer parameter accordingly. * find/ftsfind.c (get_fts_info_name): Now returns cons

Old request 267658 Emphasize operator precedence for "a" over "-o" in manpage

2016-01-02 Thread Andreas Metzler
Hello, I have been looking on old Debian bugs and have stumbled over 267658 (wishlist!): | Come to think of it some reminder in man page for the operator | precedence will be nice. This would be easy to implement by adding an example: --- a/find/find.1 +++ b/find/find.1 @@ -1505,7 +1505,13 @@ a

[bug #46791] wishlist: no option to find devices for major/minor

2016-01-02 Thread Andreas Metzler
URL: Summary: wishlist: no option to find devices for major/minor Project: findutils Submitted by: ametzler Submitted on: Sa 02 Jan 2016 14:24:08 CET Category: find Se