Skip to content

Commit

Permalink
cut an assume_unreachable in dynamic
Browse files Browse the repository at this point in the history
Summary: The compiler already knows this site to be unreachable. When building this with `-Wunreachable-code`, clang warns this site as unreachable code.

Reviewed By: Orvid

Differential Revision: D52464410

fbshipit-source-id: cabe197e977a57ad8a135a7ffc8b25ef08624266
  • Loading branch information
yfeldblum authored and facebook-github-bot committed Jan 4, 2024
1 parent 4ce7cdb commit 13f91cd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion folly/dynamic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,6 @@ const dynamic* dynamic::get_ptr(json_pointer const& jsonPtr) const& {
default:
return nullptr;
}
assume_unreachable();
}

void dynamic::reserve(std::size_t capacity) {
Expand Down

0 comments on commit 13f91cd

Please sign in to comment.