C++ mode of PIC_UNUSED

This commit is contained in:
Yuichi Nishiwaki
2016-02-21 19:19:35 +09:00
parent f8b05efa7f
commit 2a0a7be40d
16 changed files with 68 additions and 66 deletions
+3 -1
View File
@@ -138,7 +138,9 @@ typedef unsigned long uint32_t;
#define PIC_FALLTHROUGH ((void)0)
#if __GNUC__ || __clang__
#if __cplusplus
# define PIC_UNUSED(v)
#elif __GNUC__ || __clang__
# define PIC_UNUSED(v) __attribute__((unused)) v
#else
# define PIC_UNUSED(v) v