Missing return statement

A non-void subroutine must return a value on all execution paths.

This usually indicates that the return statement was omitted at the bottom of a function definition.

ID

Observation

Description

1

Definition

The place the function was defined

Example

          
int f(int x)
{
    if (x) return 3;
    // function result not set if x == 0
}
        

Copyright © 2010, Intel Corporation. All rights reserved.