Why does this code get through the compiler without a return statement?
This must be a real newbie question.
I have this method declaration in the header (dbaccess.h):
- static QStringList indexProperties();
and this definition in dbaccess.cpp:
- QStringList DBAccess::indexProperties()
ie I’ve failed to provide return a value. I’ve just spent ages attempting to debug the problem, before spotting the obvious. Why doesn’t the compiler pick up the missing return?