add Wno-error=return-type flag