一、keil结构体成员空数组 #94-D: the size of an array must be greater than zero
使用keil编译一个结构体,有空数组:
结果报了 error: #94-D: the size of an array must be greater than zero
不让用空数组,加了—cpp11和c99都不管用。
后来查了这个:https://developer.arm.com/docs/dui0496/k/c-and-c-compiler-errors-and-warnings/list-of-the-armcc-error-and-warning-messages
说是 Zero-sized arrays are permitted only when in —gnu mode
所以加了—gnu,解决
