add -wno-undef and -wno-unused-function