Avoid warnings of unused variables in Release mode

Signed-off-by: Miguel M. Almeida <miguelcma@gmail.com>