Mercurial > gnulib
changeset 39144:abcd3abbb549
fstatat: pacify GCC on unusual platform
* lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
Omit, as it’s unused in this case.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Sun, 05 Nov 2017 14:29:10 -0800 |
parents | 8a864336315a |
children | 70e60f1ab942 |
files | ChangeLog lib/fstatat.c |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Nov 05 06:04:29 2017 -0800 +++ b/ChangeLog Sun Nov 05 14:29:10 2017 -0800 @@ -1,3 +1,9 @@ +2017-11-05 Paul Eggert <eggert@cs.ucla.edu> + + 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 <eggert@cs.ucla.edu> timespec: prefer ‘assume’ to ‘assure’
--- a/lib/fstatat.c Sun Nov 05 06:04:29 2017 -0800 +++ b/lib/fstatat.c Sun Nov 05 14:29:10 2017 -0800 @@ -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) {