This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]