Skip to content

Commit f74054e

Browse files
authored
Fix warnings raised by clang 11 (#8664)
This fixes a few kinds of warnings: - inconsistent-missing-override when the overriding site is missing the override keyword - unused-function when a function is neither visible nor used - unused-private-field when a private field exists but is never used - sign-compare when unsigned ints are compared to signed ints. Not all of those have been addressed, but this warning isn't enabled by default. This fixes #8612.
1 parent e2ebf65 commit f74054e

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/google/protobuf/compiler/js/js_generator.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@ bool IsReserved(const std::string& ident) {
9494
return false;
9595
}
9696

97-
bool StrEndsWith(StringPiece sp, StringPiece x) {
98-
return sp.size() >= x.size() && sp.substr(sp.size() - x.size()) == x;
99-
}
100-
10197
std::string GetSnakeFilename(const std::string& filename) {
10298
std::string snake_name = filename;
10399
ReplaceCharacters(&snake_name, "/", '_');

0 commit comments

Comments
 (0)