Added 'unused' attribute to idx2str to silence g++ warnings.