]> git.hungrycats.org Git - linux/commitdiff
[XFS] shut up gcc warnings about _lsn_cmp
authorChristoph Hellwig <hch@sgi.com>
Tue, 25 Feb 2003 18:11:59 +0000 (19:11 +0100)
committerChristoph Hellwig <hch@sgi.com>
Tue, 25 Feb 2003 18:11:59 +0000 (19:11 +0100)
SGI Modid: 2.5.x-xfs:slinx:140187a

fs/xfs/xfs_log.h

index 02955f0c0b46f7d710f3a04e3c120d147ff80db1..e6c1a8a783518e97504ce2c6afb5fd8a91cab7f9 100644 (file)
  * endian issues in treating two 32 bit numbers as one 64 bit number
  */
 static
-#ifdef __GNUC__
-# if !((__GNUC__ == 2) && (__GNUC_MINOR__ == 95))
+#if defined(__GNUC__) && (__GNUC__ == 2) && (__GNUC_MINOR__ == 95)
+__attribute__((unused))        /* gcc 2.95 miscompiles this when inlined */
+#else
 __inline__
 #endif
-#endif
 xfs_lsn_t      _lsn_cmp(xfs_lsn_t lsn1, xfs_lsn_t lsn2, xfs_arch_t arch)
 {
        if (CYCLE_LSN(lsn1, arch) != CYCLE_LSN(lsn2, arch))