From: Paul Eggert Date: Sun, 5 Nov 2017 22:29:10 +0000 (-0800) Subject: fstatat: pacify GCC on unusual platform X-Git-Tag: v1.0~5836 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=1d74e2dc33cdac166bd8f59b3b59e7ec885d1f83;p=gnulib.git fstatat: pacify GCC on unusual platform * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]: Omit, as it’s unused in this case. --- 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) {