今天修改一个文件后, 编译器给了一个警告:
Warning: 1 future errors were detected and suppressed. Either remove the '-w' option or add a '+p' option to detect and fix them before they become fatal errors in a future release.
makefile 文件是没有问题的. 问题应该出自程序本身.
确定错误地点:
1. 为了查找出错位置, 我用 #if 0 #endif 把修改的地方注释掉. 编译. 还是报这样的警告.看来程序以前就有问题.
2. 扩大搜索范围. 我又将注释的范围扩大, 编译... 警告.倒~ 再扩大, 编译... 还是这个警告.
3. 再看下 makefile 文件, 没问题啊

再看文件... 原文件中EOF前面不是'\n'

在文件末尾加个回车, 编译 ... OK
阅读(1620) | 评论(0) | 转发(0) |