tests: Work around a warning in new Clang versions