Merge pull request #1403 from jcmonnin/fix-warning

Fix warning when NDEBUG is defined [-Wunused-variable]