shithub: lwext4

Download patch

ref: f59c52eeceb89ec75ff09faab2d78e512ac4f75f
parent: d15d9a8f91b8cf071c8d635d4643789104a3dcd8
author: gkostka <[email protected]>
date: Fri Oct 16 12:29:40 EDT 2015

Move __unused macro from tree.h to ext4_config.h

--- 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_ */
 
 /**
--- 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.