| Summary: | [code analysis] does not detect if a return statement has a expression or not | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Felipe <felipe.m.figueroa> | ||||
| Component: | cdt-codan | Assignee: | Project Inbox <cdt-core-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Elena Laskavaia <elaskavaia.cdt> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | cdtdoug | ||||
| Version: | 7.0 | ||||||
| Target Milestone: | 7.0 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Build Identifier: I20100312-1448 In a function as follows CODAN does not report there is no expression for the return statement. int integer_return_function(void) { if (global) { if (global == 100) { return; // error here on line 4 } } } Reproducible: Always Steps to Reproduce: 1.Write a non void C function 2.Within the function write a return statement without expression. 3.See the Eclipse CDT problems window. Nothing is reported regarding the missing expression.