"warning: function declaration isn‘t a prototype" was caused by the function like that:
return_type XXX()
{
.......
}
Please just modify the input paramter to void.return_type XXX(void)
{
.......
}
Or turn off the warning with -Wno-strict-prototypes (or simply by omitting -Wstrict-prototypes).
时间: 2024-10-09 22:37:19