From 1d74e2dc33cdac166bd8f59b3b59e7ec885d1f83 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 5 Nov 2017 14:29:10 -0800 Subject: [PATCH] fstatat: pacify GCC on unusual platform MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * 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 87a929791b..4bc28d9813 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2017-11-05 Paul Eggert + + 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 timespec: prefer ‘assume’ to ‘assure’ diff --git a/lib/fstatat.c b/lib/fstatat.c index 67e48d95d7..294861f51b 100644 --- a/lib/fstatat.c +++ b/lib/fstatat.c @@ -28,7 +28,7 @@ #include #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.39.5