diff options
author | Aurimas Liutikas <aurimas@google.com> | 2021-03-04 16:38:23 -0800 |
---|---|---|
committer | Aurimas Liutikas <aurimas@google.com> | 2021-03-04 16:42:59 -0800 |
commit | 90f145c957079712009ea147d9f793dc32b6a02a (patch) | |
tree | f8388a090300d9fc01c613bd17c6ed5f1ad2fa21 | |
parent | b0e0d998d2f175a586e48b01d39761e4fceaf662 (diff) | |
download | protobuf-90f145c957079712009ea147d9f793dc32b6a02a.tar.gz |
Suppress inconsistent-missing-override warnings in libprotobuf in cmake
Test: ./gradlew :appsearch:appsearch-local-storage:externalNativeBuildDebug
in androidx builds no longer show these warnings
Change-Id: I64ef31892b29139e061f0b0791534fbfa1f779fa
-rw-r--r-- | cmake/libprotobuf.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/libprotobuf.cmake b/cmake/libprotobuf.cmake index fd70da7e4..71fdb004f 100644 --- a/cmake/libprotobuf.cmake +++ b/cmake/libprotobuf.cmake @@ -126,6 +126,8 @@ if(MSVC AND protobuf_BUILD_SHARED_LIBS) PUBLIC PROTOBUF_USE_DLLS PRIVATE LIBPROTOBUF_EXPORTS) endif() +# Suppress inconsistent-missing-override warnings that are being ignored upstream +target_compile_options(libprotobuf PRIVATE -Wno-inconsistent-missing-override) set_target_properties(libprotobuf PROPERTIES VERSION ${protobuf_VERSION} OUTPUT_NAME ${LIB_PREFIX}protobuf |