This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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] Quiet warnings in sys/sysmacros.h with -pedantic


Hi!

2003-09-30  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
	gnu_dev_minor, gnu_dev_makedev): Add __extension__.

--- libc/sysdeps/unix/sysv/linux/sys/sysmacros.h	29 Sep 2003 21:54:15 -0000	1.13
+++ libc/sysdeps/unix/sysv/linux/sys/sysmacros.h	29 Sep 2003 22:20:43 -0000
@@ -26,28 +26,27 @@
    not going to hack weird hacks to support the dev_t representation
    they need.  */
 #ifdef __GLIBC_HAVE_LONG_LONG
-extern __inline unsigned int gnu_dev_major (unsigned long long int __dev)
-     __THROW;
-extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev)
-     __THROW;
-extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major,
-						      unsigned int __minor)
-     __THROW;
+__extension__ extern __inline unsigned int
+  gnu_dev_major (unsigned long long int __dev) __THROW;
+__extension__ extern __inline unsigned int
+  gnu_dev_minor (unsigned long long int __dev) __THROW;
+__extension__ extern __inline unsigned long long int
+  gnu_dev_makedev (unsigned int __major, unsigned int __minor) __THROW;
 
 # if defined __GNUC__ && __GNUC__ >= 2
-extern __inline unsigned int
+__extension__ extern __inline unsigned int
 gnu_dev_major (unsigned long long int __dev) __THROW
 {
   return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
 }
 
-extern __inline unsigned int
+__extension__ extern __inline unsigned int
 gnu_dev_minor (unsigned long long int __dev) __THROW
 {
   return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
 }
 
-extern __inline unsigned long long int
+__extension__ extern __inline unsigned long long int
 gnu_dev_makedev (unsigned int __major, unsigned int __minor) __THROW
 {
   return ((__minor & 0xff) | ((__major & 0xfff) << 8)

	Jakub


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