tools: fix compilation warning about an unused return value