]> Savannah Git Hosting - gnulib.git/commitdiff
fchmodat: pacify gcc -Wunused-variable
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 Jun 2022 04:29:07 +0000 (23:29 -0500)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 Jun 2022 04:38:04 +0000 (23:38 -0500)
Problem reported by Bruno Haible in:
https://lists.gnu.org/r/bug-gnulib/2022-06/msg00075.html
* lib/fchmodat.c (fchmodat): Remove unused local.

ChangeLog
lib/fchmodat.c

index c9975f436b8ed3cce4f1f057b9456210e971468f..a815ca62cdd29efc3465e68e3d4b48a64ecbf160 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-06-19  Paul Eggert  <eggert@cs.ucla.edu>
+
+       fchmodat: pacify gcc -Wunused-variable
+       Problem reported by Bruno Haible in:
+       https://lists.gnu.org/r/bug-gnulib/2022-06/msg00075.html
+       * lib/fchmodat.c (fchmodat): Remove unused local.
+
 2022-06-19  Bruno Haible  <bruno@clisp.org>
 
        getlogin, getlogin_r tests: Really avoid test failure.
index 8ed4cb739873542b45e8a446a4f8ccd23c0a0936..164e2c4a95fcfd17d6f26926097d1edd6ba7ba6e 100644 (file)
@@ -96,7 +96,6 @@ fchmodat (int dir, char const *file, mode_t mode, int flags)
         return fd;
 
       int err;
-      char buf[1];
       if (0 <= readlinkat (fd, "", readlink_buf, sizeof readlink_buf))
         err = EOPNOTSUPP;
       else if (errno == EINVAL)