From bb7fa1e9321e6469c0738c33f5e5bb8ac3d62067 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 8 Oct 2008 10:44:12 +0200 Subject: maint: avoid warnings due to attribute warn_unused_result Now that a (void) cast no longer suffices to ignore warnings from gcc about uses of functions marked with the warn_unused_result attribute, we need an alternative. For the record, here's one of the ignorable warnings: "copy.c:233: warning: ignoring return value of 'fchown', declared with attribute warn_unused_result" * bootstrap.conf (gnulib_modules): Import ignore-value. * src/copy.c: Include "ignore-value.h". (set_owner): Use ignore_value in place of "(void)" casts, to ignore lchown and fchown failures. * src/cp.c (re_protect): Likewise, to ignore lchown failure. * src/remove.c (preprocess_dir): Remove unnecessary "(void)" cast. --- bootstrap.conf | 1 + 1 file changed, 1 insertion(+) (limited to 'bootstrap.conf') diff --git a/bootstrap.conf b/bootstrap.conf index 6405955c6..c6698f114 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -61,6 +61,7 @@ gnulib_modules=" gitlog-to-changelog gnu-make gnumakefile gnupload group-member hard-locale hash hash-pjw host-os human idcache + ignore-value inttostr inttypes isapipe lchmod lchown lib-ignore linebuffer link-follow long-options lstat malloc mbswidth memcasecmp mempcpy -- cgit v1.2.3-54-g00ecf