[patch] Fix warning: ../sysdeps/unix/sysv/linux/i386/fcntl.c:36:12: warning: âmiss_F_GETOWN_EXâ defined but not used
Paul Pluzhnikov
ppluzhnikov@google.com
Sat Mar 27 02:26:00 GMT 2010
Greetings,
When doing i686-unknown-linux-gnu build configured with --enable-kernel=2.6.24,
there are several warnings like this:
../sysdeps/unix/sysv/linux/i386/fcntl.c:36:12: warning: âmiss_F_GETOWN_EXâ defined but not used
Attached is proposed patchlet.
[Google has blanket copyright assignment to FSF.]
Thanks,
--
Paul Pluzhnikov
2010-03-26 Paul Pluzhnikov <ppluzhnikov@google.com>
* sysdeps/unix/sysv/linux/i386/fcntl.c: define miss_F_GETOWN_EX
only if needed.
diff --git a/sysdeps/unix/sysv/linux/i386/fcntl.c b/sysdeps/unix/sysv/linux/i386/fcntl.c
index 5544d6e..0742d62 100644
--- a/sysdeps/unix/sysv/linux/i386/fcntl.c
+++ b/sysdeps/unix/sysv/linux/i386/fcntl.c
@@ -32,7 +32,7 @@ int __have_no_fcntl64;
#ifdef __ASSUME_F_GETOWN_EX
# define miss_F_GETOWN_EX 0
-#else
+#elif __ASSUME_FCNTL64 == 0
static int miss_F_GETOWN_EX;
#endif
More information about the Libc-alpha
mailing list