Fix unused variables on release builds with a pragma