axe: Fix a -Wunused-but-set-variable warning
(cherry picked from commit f4a5d1f6c4405b0bdf62481617f66afa1da3527d)