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

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

     [ https://issues.apache.org/jira/browse/KUDU-3391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Serbin resolved KUDU-3391.
---------------------------------
    Fix Version/s: 1.17.0
       Resolution: Fixed

Fixed with https://github.com/apache/kudu/commit/9a8570b9c6b3d4e24e47ca830c089ab04667ef41

> 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
>            Priority: Minor
>              Labels: newbie
>             Fix For: 1.17.0
>
>
> 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)