shithub: lwext4

Download patch

ref: 2df08d93f8dda03f5cf3bb9c6928626540b9ef32
parent: 641de5c3aa3af37924f1eed56e958951d30561b0
author: ngkaho1234 <ngkaho1234@gmail.com>
date: Fri Jan 22 12:31:44 EST 2016

Fix __unused definition on non-gnuc platforms.

--- a/lwext4/ext4_types.h
+++ b/lwext4/ext4_types.h
@@ -1281,11 +1281,11 @@
 	while (0)
 
 #ifdef __GNUC__
-#ifndef __unused
-#define __unused __attribute__ ((__unused__))
+ #ifndef __unused
+ #define __unused __attribute__ ((__unused__))
+ #endif
 #else
-#define __unused
-#endif
+ #define __unused
 #endif
 
 #ifndef offsetof