C5661: Not all control paths return a value

[WARNING]

Description

There are one or more control paths without a return 'value' statement. Your function does not return a value in every case.

Example
  int glob;

  
  int test(void) {

  
    if (glob) {

  
      return 1;

  
    }

  
  }

  
Tips

Do return a value in all control flows.