core: fix compilation warning introduced in 59f10c28