public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Quiet warnings in sys/sysmacros.h with -pedantic
@ 2003-09-29 22:22 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2003-09-29 22:22 UTC (permalink / raw)
  To: Ulrich Drepper, Roland McGrath; +Cc: Glibc hackers

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-09-29 22:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-29 22:22 [PATCH] Quiet warnings in sys/sysmacros.h with -pedantic Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).