Revert "-Wno-error=return-type"

This reverts commit 78bb1595b4cdb326a7629fa45bb11bc6f1175eed.