Include return type in warning message for fix of Issue 3882