fix unused variable
Merge pull request #728 from lunika/hook_registration

fix unused variable