error: function declaration isn’t a prototype [-Werror=strict-prototypes]

"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).

posted on 2015-05-27 10:47  层林尽染  阅读(875)  评论(0编辑  收藏  举报

导航