clang: fix warning by adding assert that shows that a variable is used