编译出现
error: function declaration isn't a prototype [-Werror=strict-prototypes]
void test_info()
问题分析
这是由于编译器检查严格,函数参数为空的时候需要增加void
问题修改
将
void test_info()
修改为
void test_info(void)
error: function declaration isn't a prototype [-Werror=strict-prototypes]
void test_info()
这是由于编译器检查严格,函数参数为空的时候需要增加void
将
void test_info()
修改为
void test_info(void)