Skip to content

Commit f7790bb

Browse files
alexmarkovCommit Queue
authored andcommitted
[gardening] Fix gcc and msvc builds
Fix the following compile-time errors: C:\b\s\w\ir\cache\builder\sdk\runtime\vm\elf.cc(601) : error C2220: the following warning is treated as an error C:\b\s\w\ir\cache\builder\sdk\runtime\vm\elf.cc(601) : warning C4715: 'dart::ElfSymbolTable::ElfSymbolType': not all control paths return a value ../../runtime/vm/elf.cc: In static member function ‘static intptr_t dart::ElfSymbolTable::ElfSymbolType(dart::SharedObjectWriter::SymbolData::Type)’: ../../runtime/vm/elf.cc:601:3: error: control reaches end of non-void function [-Werror=return-type] 601 | } | ^ TEST=ci Change-Id: Ib06339405b406ea4a6f6d395a04a16573d92c704 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/430321 Auto-Submit: Alexander Markov <[email protected]> Reviewed-by: Alexander Aprelev <[email protected]> Commit-Queue: Alexander Aprelev <[email protected]>
1 parent d7cef28 commit f7790bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

runtime/vm/elf.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,7 @@ class ElfSymbolTable : public ElfSection {
598598
case SharedObjectWriter::SymbolData::Type::Object:
599599
return elf::STT_OBJECT;
600600
}
601+
UNREACHABLE();
601602
}
602603

603604
Zone* const zone_;

0 commit comments

Comments
 (0)