bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] fstatat: pacify GCC on unusual platform


From: Paul Eggert
Subject: [PATCH] fstatat: pacify GCC on unusual platform
Date: Sun, 5 Nov 2017 14:29:43 -0800

* lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
Omit, as it’s unused in this case.
---
 ChangeLog     | 6 ++++++
 lib/fstatat.c | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 87a929791..4bc28d981 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-11-05  Paul Eggert  <address@hidden>
+
+       fstatat: pacify GCC on unusual platform
+       * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
+       Omit, as it’s unused in this case.
+
 2017-10-29  Paul Eggert  <address@hidden>
 
        timespec: prefer ‘assume’ to ‘assure’
diff --git a/lib/fstatat.c b/lib/fstatat.c
index 67e48d95d..294861f51 100644
--- a/lib/fstatat.c
+++ b/lib/fstatat.c
@@ -28,7 +28,7 @@
 #include <sys/stat.h>
 #undef __need_system_sys_stat_h
 
-#if HAVE_FSTATAT
+#if HAVE_FSTATAT && HAVE_WORKING_FSTATAT_ZERO_FLAG
 static int
 orig_fstatat (int fd, char const *filename, struct stat *buf, int flags)
 {
-- 
2.13.6




reply via email to

[Prev in Thread] Current Thread [Next in Thread]