Fix Wunused-param for release build