apply -Wno-unused-variable in release mode