]> Savannah Git Hosting - gnulib.git/commitdiff
fstatat: pacify GCC on unusual platform
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 5 Nov 2017 22:29:10 +0000 (14:29 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 5 Nov 2017 22:29:26 +0000 (14:29 -0800)
* lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
Omit, as it’s unused in this case.

ChangeLog
lib/fstatat.c

index 87a929791bbf237ffb5707a08b803f715134ab94..4bc28d98130270e79f1dfb247e522439d3b81e0f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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’
index 67e48d95d7108b2ae423791e750c1da2f8807531..294861f51b1952ed3982cb01b3919a2cc054b468 100644 (file)
@@ -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)
 {