c0f*_*lex 5 c++ compiler-construction gcc compiler-errors compiler-warnings
有没有人知道gcc/g ++选项如果某个函数具有非void返回值但在其定义中不包含return语句,则会生成错误/警告?
例如:
int add(int a, int b)
{
a+b;
}
Run Code Online (Sandbox Code Playgroud)
提前谢谢了!
| 归档时间: |
|
| 查看次数: |
2191 次 |
| 最近记录: |