Remove warnings related to -Wreturn-type