rts: Fix "variable set but not used" warning