Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile warning Clang 11 on C++ #8580

Closed
gvollant opened this issue May 7, 2021 · 0 comments · Fixed by #8664
Closed

compile warning Clang 11 on C++ #8580

gvollant opened this issue May 7, 2021 · 0 comments · Fixed by #8664

Comments

@gvollant
Copy link
Contributor

gvollant commented May 7, 2021

I have these warnings

google/protobuf/compiler/cpp/cpp_helpers.cc:173:6: warning: function 'Base63Char' is not needed and will not be emitted [-Wunneeded-internal-declaration]

char Base63Char(int value) {

     ^

  CXX      google/protobuf/compiler/java/java_enum.lo

1 warning generated.

 

 

google/protobuf/compiler/js/js_generator.cc:97:6: warning: unused function 'StrEndsWith' [-Wunused-function]

bool StrEndsWith(StringPiece sp, StringPiece x) {

     ^

1 warning generated.

 

 

 

In file included from google/protobuf/compiler/csharp/csharp_source_generator_base.cc:39:

./google/protobuf/compiler/csharp/csharp_source_generator_base.h:62:25: warning: private field 'descriptor_' is not used [-Wunused-private-field]

  const FileDescriptor* descriptor_;

                        ^

1 warning generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant