C1849: Result returned in void-result-function

[ERROR]

Description

A return was made with an expression, though the function has void return type.

Example
  void f(void) {

  
    return 1;

  
  }

  
Tips

Do not return an expression in a function with void return type. Just write return, or write nothing.