Skip to content

Conversation

@Kernald
Copy link
Contributor

@Kernald Kernald commented May 27, 2021

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 #8580, fixes #8612.

@Kernald Kernald force-pushed the llvm-warning-fixes branch from a6d4ed6 to 570fa1b Compare May 31, 2021 07:03
Copy link

@acozzette acozzette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the cleanup! Looks good to me except for a few more small comments I made.

Copy link

@acozzette acozzette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry but I added just two more things I might missed before, otherwise looks great.

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 protocolbuffers#8612.
@Kernald Kernald force-pushed the llvm-warning-fixes branch from 467dd6d to 3ddcaca Compare June 2, 2021 22:16
@Kernald
Copy link
Contributor Author

Kernald commented Jun 2, 2021

I just addressed the last comments and rebased on master.

@acozzette acozzette merged commit 4644980 into protocolbuffers:master Jun 7, 2021
@Kernald Kernald deleted the llvm-warning-fixes branch June 8, 2021 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warning compiling Protobuf 3.17 with clang++11 compile warning Clang 11 on C++

4 participants