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

Clean wdeprecated-copy warnings and others #1568

Merged
merged 4 commits into from
Apr 18, 2021
Merged

Conversation

piponazo
Copy link
Collaborator

The main objective of this PR was to clean the warnings reported by -Wdeprecated-copy which were not treated as errors temporarily after enabling C++11 on main.

This PR cleans all these warnings and others reported when using the option EXIV2_TEAM_EXTRA_WARNINGS on CMake. The compiler output should be much cleaner now.

This is done so that when we use EXIV2_TEAM_EXTRA_WARNINGS we do not get
warnings about XMPSDK (we do not want to deal with those)
Most of the warnings fixed were:
- Hiding of local variables
- Hiding of globals
- Useless casts
- Conversions between float/double
@piponazo piponazo requested a review from clanmills April 18, 2021 13:22
@lgtm-com
Copy link

lgtm-com bot commented Apr 18, 2021

This pull request introduces 1 alert and fixes 3 when merging a19f5cc into 04c4c84 - view on LGTM.com

new alerts:

  • 1 for Inconsistent definition of copy constructor and assignment ('Rule of Two')

fixed alerts:

  • 3 for Inconsistent definition of copy constructor and assignment ('Rule of Two')

@lgtm-com
Copy link

lgtm-com bot commented Apr 18, 2021

This pull request introduces 1 alert and fixes 3 when merging ab2c997 into 04c4c84 - view on LGTM.com

new alerts:

  • 1 for Inconsistent definition of copy constructor and assignment ('Rule of Two')

fixed alerts:

  • 3 for Inconsistent definition of copy constructor and assignment ('Rule of Two')

Copy link
Collaborator

@clanmills clanmills left a comment

Choose a reason for hiding this comment

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

You're on fire. Great Job.

@piponazo piponazo merged commit 0a1bf46 into main Apr 18, 2021
@piponazo piponazo deleted the mainWdeprecated-copy branch April 18, 2021 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants