mirror of
https://gitee.com/openharmony/third_party_spirv-tools
synced 2024-11-23 15:30:36 +00:00
Suppress -Wunused-but-set-variable on variable (#4777)
sentinel_count is not used in non-assert builds. Recent clang improvements to -Wunused-but-set-variable trigger a warning on this. Fixes #4772.
This commit is contained in:
parent
5760114d77
commit
b0ce31fd2d
@ -348,6 +348,7 @@ void IntrusiveList<NodeType>::Check(NodeType* start) {
|
||||
p = p->next_node_;
|
||||
} while (p != start);
|
||||
assert(sentinel_count == 1 && "List should have exactly 1 sentinel node.");
|
||||
(void)sentinel_count;
|
||||
|
||||
p = start;
|
||||
do {
|
||||
|
Loading…
Reference in New Issue
Block a user