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

Current Gmock generates a lot of warning on Ubuntu 22.04 with Clang #23

Closed
JvE-Lely opened this issue Feb 27, 2023 · 1 comment · Fixed by #21
Closed

Current Gmock generates a lot of warning on Ubuntu 22.04 with Clang #23

JvE-Lely opened this issue Feb 27, 2023 · 1 comment · Fixed by #21
Labels

Comments

@JvE-Lely
Copy link

On Humble building unittests generated a lot of warning with regard to GMock:

In file included from /opt/ros/humble/src/gmock_vendor/include/gmock/gmock-spec-builders.h:75:
/opt/ros/humble/src/gmock_vendor/include/gmock/gmock-matchers.h:721:3: warning: definition of implicit copy constructor for 'StrEqualityMatcher<std::basic_string<char>>' is deprecated because it has a user-declared copy assignment operator [-Wdeprecated-copy]
  GTEST_DISALLOW_ASSIGN_(StrEqualityMatcher);

Can this be fixed since it generates a lot warning making it impossible to find the error.

In GMock this is fixed in google#2815

@clalancette
Copy link

Can you give us an example of how you are using this? If you use gmock as a modern CMake target, CMake will automatically mark these headers as SYSTEM and thus suppress the warnings.

@clalancette clalancette linked a pull request Jun 23, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants