add -Wno-error=return-type to prevent compile error