no newline at the end of file
2014-05-16 11:45
471 查看
【no newline at the end of file】
修复这个警告,在文件结尾回车一下就行了。
这么规定的初衷是,为了每一行都要以换行结束。
因为行尾的/表示连接下一行,如果一个文件最后一行(main函数的右边大括号)行尾有/,那么,紧跟它也被包含进来的下一个源文件的第一行就会被连接!而如果一个文件以一个空行结束就会避免这种情况的发生。
例子:
![](http://images.cnitblog.com/i/292994/201405/161143027341542.png)
参考:http://blog.csdn.net/digu/article/details/5945279
修复这个警告,在文件结尾回车一下就行了。
这么规定的初衷是,为了每一行都要以换行结束。
因为行尾的/表示连接下一行,如果一个文件最后一行(main函数的右边大括号)行尾有/,那么,紧跟它也被包含进来的下一个源文件的第一行就会被连接!而如果一个文件以一个空行结束就会避免这种情况的发生。
例子:
![](http://images.cnitblog.com/i/292994/201405/161143027341542.png)
参考:http://blog.csdn.net/digu/article/details/5945279
相关文章推荐
- warning: no newline at the end of file
- warning no newline at the end of file
- warning no newline at the end of file
- error:warning no newline at the end of file
- CFree 提示no newline at the end of file
- warning: no newline at the end of file
- warning no newline at the end of file
- main.c :10:2 warning: no newline at the end of file
- warning no newline at the end of file
- warning no newline at the end of file
- main.c :10:2 warning: no newline at the end of file
- warning: no newline at the end of file
- warning no newline at the end of file
- warning no newline at the end of file
- C语言-何消除 warning no newline at the end of file
- 如何解决warning: no newline at end of file?
- Warning: no newline at end of file
- warning: no newline at end of file
- 如何解决warning: no newline at end of file
- 如何解决warning: no newline at end of file?