hooks: Get rid of a compiler warning