Whamcloud - gitweb
LU-506 kernel: FC15 - fix GCC 'set-but-unused' warnings
[fs/lustre-release.git] / libcfs / include / libcfs / libcfs.h
index 863ca3a..1a47def 100644 (file)
@@ -328,6 +328,8 @@ static inline void *__container_of(void *ptr, unsigned long shift)
 #define container_of0(ptr, type, member) \
         ((type *)__container_of((void *)(ptr), offsetof(type, member)))
 
+#define SET_BUT_UNUSED(a) do { } while(sizeof(a) - sizeof(a))
+
 #define _LIBCFS_H
 
 #endif /* _LIBCFS_H */