fix fedora warning for #4460, unused varible