Skip to content

Commit 2639074

Browse files
authored
Fix fuzztest compiler warnings [NFC] (#7380)
First is an unused variable, second is an unneeded move.
1 parent 2a84e5a commit 2639074

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/gtest/type-domains.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ fuzztest::Domain<TypePlan> AvailableType(TypeBuilderPlan plan) {
725725

726726
fuzztest::Domain<TypePlan> AvailableSubType(TypeBuilderPlan plan,
727727
TypePlan super) {
728-
if (auto* type = super.getNonRef()) {
728+
if (super.getNonRef()) {
729729
// No subtyping among non-ref types.
730730
return fuzztest::Just(super);
731731
} else if (auto* ref = super.getRef()) {
@@ -1046,7 +1046,7 @@ std::vector<HeapType> BuildHeapTypes(TypeBuilderPlan plan) {
10461046
;
10471047
}
10481048
assert(built);
1049-
return std::move(*built);
1049+
return *built;
10501050
}
10511051

10521052
auto ArbitraryDefinedHeapTypesAndPlan() {

0 commit comments

Comments
 (0)