fix -Werror,-Wunused-variable rhs added for storing funcnames