mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-23 15:22:45 +01:00
shader: Fix gcc warnings
This commit is contained in:
parent
75dee55486
commit
c8f9772d65
2 changed files with 2 additions and 2 deletions
|
@ -282,7 +282,7 @@ void Inst::ClearArgs() {
|
||||||
}
|
}
|
||||||
// Reset arguments to null
|
// Reset arguments to null
|
||||||
// std::memset was measured to be faster on MSVC than std::ranges:fill
|
// std::memset was measured to be faster on MSVC than std::ranges:fill
|
||||||
std::memset(&args, 0, sizeof(args));
|
std::memset(reinterpret_cast<char*>(&args), 0, sizeof(args));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -267,7 +267,7 @@ bool IsIndirectlyRelated(Node goto_stmt, Node label_stmt) {
|
||||||
return goto_stmt->up != label_stmt->up && !IsDirectlyRelated(goto_stmt, label_stmt);
|
return goto_stmt->up != label_stmt->up && !IsDirectlyRelated(goto_stmt, label_stmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AreSiblings(Node goto_stmt, Node label_stmt) noexcept {
|
[[maybe_unused]] bool AreSiblings(Node goto_stmt, Node label_stmt) noexcept {
|
||||||
Node it{goto_stmt};
|
Node it{goto_stmt};
|
||||||
do {
|
do {
|
||||||
if (it == label_stmt) {
|
if (it == label_stmt) {
|
||||||
|
|
Loading…
Reference in a new issue