Whamcloud - gitweb
fix unused-function -Wall warnings
[tools/e2fsprogs.git] / lib / ext2fs / rbtree.h
index f718ad2..790f5c1 100644 (file)
@@ -98,6 +98,11 @@ static inline struct page * rb_insert_page_cache(struct inode * inode,
 #include <stdint.h>
 #include "compiler.h"
 
+#if __GNUC_PREREQ (4, 6)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-function"
+#endif
+
 struct rb_node
 {
        uintptr_t  rb_parent_color;
@@ -171,4 +176,8 @@ static inline void ext2fs_rb_link_node(struct rb_node * node,
        *rb_link = node;
 }
 
+#if __GNUC_PREREQ (4, 6)
+#pragma GCC diagnostic pop
+#endif
+
 #endif /* _LINUX_RBTREE_H */