When doing a `ON_CALL(mock, some_func).returns(some_val), the value returned by the 'returns()' function is not needed. The function is declared as returning a value of the type the mocked function returns. It could be declared as 'void'.
This code causes issues when compiling with the stricter ruleset that returned values are either used or explicitly ignored (in IUS, '-ncerror FUNTSK').
When doing a `ON_CALL(mock, some_func).returns(some_val), the value returned by the 'returns()' function is not needed. The function is declared as returning a value of the type the mocked function returns. It could be declared as 'void'.
This code causes issues when compiling with the stricter ruleset that returned values are either used or explicitly ignored (in IUS, '-ncerror FUNTSK').