Skip to content

Commit 541a139

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Fix unreachable-return issue in folly/IPAddress.cpp +1
Summary: LLVM has a warning `-Wunreachable-code-return` which we treat as an error because the condition it flags compromises readability. This diff fixes related issues by removing unreachable returns. For questions/comments, contact r-barnes. - If you approve of this diff, please use the "Accept & Ship" button :-) Reviewed By: dtolnay Differential Revision: D76478022 fbshipit-source-id: 7070b82fc7b050cbd1971ca18f7926be77eb0502
1 parent de8cb3d commit 541a139

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

third-party/folly/src/folly/IPAddress.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,6 @@ CIDRNetwork IPAddress::createNetwork(
133133
}
134134

135135
CHECK(0);
136-
137-
return CIDRNetwork{};
138136
}
139137

140138
// public static

0 commit comments

Comments
 (0)