Commit 247df480 authored by Christoph Hellwig's avatar Christoph Hellwig

[XFS] shut up gcc warnings about _lsn_cmp

SGI Modid: 2.5.x-xfs:slinx:140187a
parent ed3373fd
...@@ -53,11 +53,11 @@ ...@@ -53,11 +53,11 @@
* endian issues in treating two 32 bit numbers as one 64 bit number * endian issues in treating two 32 bit numbers as one 64 bit number
*/ */
static static
#ifdef __GNUC__ #if defined(__GNUC__) && (__GNUC__ == 2) && (__GNUC_MINOR__ == 95)
# if !((__GNUC__ == 2) && (__GNUC_MINOR__ == 95)) __attribute__((unused)) /* gcc 2.95 miscompiles this when inlined */
#else
__inline__ __inline__
#endif #endif
#endif
xfs_lsn_t _lsn_cmp(xfs_lsn_t lsn1, xfs_lsn_t lsn2, xfs_arch_t arch) 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)) if (CYCLE_LSN(lsn1, arch) != CYCLE_LSN(lsn2, arch))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment