This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[patch] Fix warning: ../sysdeps/unix/sysv/linux/i386/fcntl.c:36:12: warning: âmiss_F_GETOWN_EXâ defined but not used
- From: ppluzhnikov at google dot com (Paul Pluzhnikov)
- To: libc-alpha at sourceware dot org
- Cc: ppluzhnikov at google dot com
- Date: Fri, 26 Mar 2010 18:45:43 -0700 (PDT)
- Subject: [patch] Fix warning: ../sysdeps/unix/sysv/linux/i386/fcntl.c:36:12: warning: âmiss_F_GETOWN_EXâ defined but not used
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