summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgkostka <kostka.grzegorz@gmail.com>2015-10-16 16:29:40 +0200
committergkostka <kostka.grzegorz@gmail.com>2015-10-16 16:29:40 +0200
commitf59c52eeceb89ec75ff09faab2d78e512ac4f75f (patch)
tree0b664681d96a70a944667c8ae7f79c99f4cba1ab
parentd15d9a8f91b8cf071c8d635d4643789104a3dcd8 (diff)
Move __unused macro from tree.h to ext4_config.h
-rw-r--r--lwext4/ext4_config.h6
-rw-r--r--lwext4/tree.h7
2 files changed, 8 insertions, 5 deletions
diff --git a/lwext4/ext4_config.h b/lwext4/ext4_config.h
index 65c8e10..62382f5 100644
--- a/lwext4/ext4_config.h
+++ b/lwext4/ext4_config.h
@@ -142,6 +142,12 @@
#define CONFIG_HAVE_OWN_OFLAGS 0
#endif
+#ifdef __GNUC__
+#ifndef __unused
+#define __unused __attribute__ ((__unused__))
+#endif
+#endif
+
#endif /* EXT4_CONFIG_H_ */
/**
diff --git a/lwext4/tree.h b/lwext4/tree.h
index 291ad17..fb89465 100644
--- a/lwext4/tree.h
+++ b/lwext4/tree.h
@@ -30,11 +30,8 @@
#ifndef _SYS_TREE_H_
#define _SYS_TREE_H_
-#ifdef __GNUC__
-#ifndef __unused
-#define __unused __attribute__ ((__unused__))
-#endif
-#endif
+#include "ext4_config.h"
+
/*
* This file defines data structures for different types of trees:
* splay trees and red-black trees.