Skip to content

Commit ccaa625

Browse files
anchaoxiaoxiang781216
authored andcommitted
fs/smart: fix visual studio Compiler Error C2016
D:\archer\code\nuttx\include\nuttx/fs/smart.h(118,1): error C2016: C requires that a struct or union has at least one member Compiler error C2016: C requires that a struct or union has at least one member Reference: https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/compiler-errors-c2001-through-c2099?view=msvc-170 Signed-off-by: chao.an <[email protected]> Signed-off-by: chao an <[email protected]>
1 parent 634baa5 commit ccaa625

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/nuttx/fs/smart.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ struct smart_procfs_data_s
114114
#ifdef CONFIG_MTD_SMART_ERASE_DEBUG
115115
const uint16_t *erasecounts; /* Pointer to the erase counts array */
116116
uint16_t erasesize; /* Number of entries in the erase counts array */
117+
#else
118+
uint8_t __pad;
117119
#endif
118120
};
119121
#endif

0 commit comments

Comments
 (0)