make警告:control reaches end of non-void function [-Wreturn-type] }

错误警告事例:

bool test()

{

  printf("test\n");

}

 

修改:

bool test()

{

  printf("test\n");

  return true;  //加上返回值解除警告

}

posted @ 2022-09-13 17:02  gǒが油メo  阅读(183)  评论(0)    收藏  举报