C1855: Recursive function call

[DISABLE, INFORMATION, WARNING , ERROR]

Description

A recursive function call was detected. There is a danger of endless recursion, which leads to a stack overflow.

Example
  void f(void) {

  
    f();  // warning; this code leads to an endless 
  recursion

  
  }  

  
  void g(int i) {

  
    if(i>0) {

  
      g(--i);  // warning; this code has no endless 
  recursion

  
    }

  
  }

  
Tips

Be sure there is no endless recursion. This would lead to a stack overflow.