Fix missing return warning on gcc