use -Wno-unused-variable and -Wno-unused-parameter in release build