You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Marton Greber (Jira)" <ji...@apache.org> on 2022/08/16 10:47:00 UTC

[jira] [Created] (KUDU-3391) Fix gmock -Wdeprecated-copy (macOS)

Marton Greber created KUDU-3391:
-----------------------------------

             Summary: Fix gmock -Wdeprecated-copy (macOS)
                 Key: KUDU-3391
                 URL: https://issues.apache.org/jira/browse/KUDU-3391
             Project: Kudu
          Issue Type: Improvement
            Reporter: Marton Greber


Building kudu thirdparty with xcode 13.3 and above fails with -Wdeprecated-copy error in gmock:
{code:java}
/Users/mgreber/git/kudu/thirdparty/src/googletest-release-1.10.0/googlemock/include/gmock/gmock-actions.h:455:3: error: definition of implicit copy constructor for 'PolymorphicAction<testing::internal::ReturnNullAction>' is deprecated because it has a user-declared copy assignment operator [-Werror,-Wdeprecated-copy]
  GTEST_DISALLOW_ASSIGN_(PolymorphicAction);
  ^
…
/Users/mgreber/git/kudu/thirdparty/src/googletest-release-1.10.0/googlemock/include/gmock/gmock-matchers.h:3908:10: note: in implicit move constructor for 'testing::PolymorphicMatcher<testing::internal::EndsWithMatcher<std::wstring>>' first required here
  return MakePolymorphicMatcher(
         ^
12 errors generated. {code}
 

Minimal repro:

 
 # download and install xcode 13.3
 # run $kudu_root/thirdparty/download-thirdparty.sh
 # run $kudu_root/thirdparty/build-thirdparty.sh gmock

The issue is fixed in: [https://github.com/google/googletest/pull/2815]

 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)