warning: control reaches end of non-void function 它的意思是:控制到达非void函数的结尾。就是说你的一些本应带有返回值的函数到达结尾后可能并没有返回任何值。这时候,最好检查一下是否每个控制流都会有返回值。 《Android应用性能优化》 p202 hellorendering.rs 文件: #pragma
}introot(){floatred = rsRand(1.0f);floatgreen = rsRand(1.0f);floatblue = rsRand(1.0f);//清除随机颜色的背景色rsgClearColor(red,green,blue,1.0f); //出错误警告 warning: implicit declaration of function 'rsgClearColor' is invalid in C99//每秒50帧 = 每帧20毫秒return20; } 后来发现是忘...
V553. Length of function body or class declaration is more than 2000 lines. Consider refactoring the code. V554. Incorrect use of smart pointer. V555. Expression of the 'A - B > 0' kind will work as 'A != B'. V556. Values of different enum types are compared. V557. Possible ar...