Skip to content

Commit f5f5c3b

Browse files
committed
Allow returning different type without std::move
1 parent fb7ed9e commit f5f5c3b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ if(WEVERYTHING)
6262
-Wno-double-promotion
6363
-Wno-float-equal
6464
-Wno-padded
65+
-Wno-return-std-move-in-c++11
6566
-Wno-switch-enum
6667
)
6768
endif()

lib/fizzy/parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ std::unique_ptr<const Module> parse(bytes_view input)
658658
module->codesec.emplace_back(
659659
parse_code(code_binaries[i], static_cast<FuncIdx>(i), *module));
660660

661-
return std::unique_ptr<const Module>(module.release());
661+
return module;
662662
}
663663

664664
parser_result<std::vector<uint32_t>> parse_vec_i32(const uint8_t* pos, const uint8_t* end)

0 commit comments

Comments
 (0)