How to force a compiler error when no value is explicitly returned from a function
One of the most common mistakes I make is that I forget to return the result from the method / function and the compiler doesn't complain.
How can I get GCC to raise a compilation error if no result is returned? (these are usually trivial situations where there is no return in a method)
+3
source to share
3 answers