E2292 Function should return a value (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

Your source file declared the current function to return some type other than int or void, but the compiler encountered a return with no value. This usually indicates some sort of error.

Functions declared as returning int are exempt because older versions of C did not support void function return types.