[C语言]error: function declaration isn‘t a prototype [-Werror=strict-prototypes]

编译出现

error: function declaration isn't a prototype [-Werror=strict-prototypes]
 void  test_info()

问题分析

这是由于编译器检查严格,函数参数为空的时候需要增加void

问题修改

void test_info()

修改为

void test_info(void)

猜你喜欢

转载自blog.csdn.net/wgl307293845/article/details/124522870