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

various clang fixes #2556

Merged
merged 4 commits into from
Mar 22, 2023
Merged

various clang fixes #2556

merged 4 commits into from
Mar 22, 2023

Conversation

neheb
Copy link
Collaborator

@neheb neheb commented Mar 21, 2023

No description provided.

@ghost
Copy link

ghost commented Mar 21, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@codecov
Copy link

codecov bot commented Mar 21, 2023

Codecov Report

Merging #2556 (8debb0b) into main (8b96ebc) will decrease coverage by 0.77%.
The diff coverage is 70.72%.

@@            Coverage Diff             @@
##             main    #2556      +/-   ##
==========================================
- Coverage   64.67%   63.90%   -0.77%     
==========================================
  Files         103      103              
  Lines       22226    22398     +172     
  Branches    10860    10830      -30     
==========================================
- Hits        14374    14314      -60     
- Misses       5614     5863     +249     
+ Partials     2238     2221      -17     
Impacted Files Coverage Δ
include/exiv2/asfvideo.hpp 66.66% <ø> (ø)
include/exiv2/matroskavideo.hpp 60.00% <ø> (ø)
include/exiv2/metadatum.hpp 78.57% <ø> (ø)
include/exiv2/pgfimage.hpp 100.00% <ø> (ø)
include/exiv2/riffvideo.hpp 100.00% <ø> (ø)
include/exiv2/slice.hpp 91.30% <ø> (ø)
include/exiv2/tags.hpp 0.00% <ø> (ø)
src/crwimage_int.hpp 100.00% <ø> (+6.25%) ⬆️
src/easyaccess.cpp 94.44% <ø> (ø)
src/epsimage.cpp 1.88% <0.00%> (-0.05%) ⬇️
... and 60 more

... and 12 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Found with -Wdocumentation

Signed-off-by: Rosen Penev <rosenp@gmail.com>
@neheb neheb force-pushed the mf branch 2 times, most recently from 5ec6818 to aefbd7d Compare March 21, 2023 05:56
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Just direct initialize

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Copy link
Collaborator

@kmilos kmilos left a comment

Choose a reason for hiding this comment

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

LGTM

@neheb neheb merged commit 513b0e8 into Exiv2:main Mar 22, 2023
@neheb neheb deleted the mf branch March 22, 2023 13:11
@kmilos
Copy link
Collaborator

kmilos commented Mar 22, 2023

Hm, didn't seem to do it for MSYS2 CLANG64 still:

C:/msys64/home/kmilos/exiv2/samples/easyaccess-test.cpp:15:3: error: constexpr variable 'easyAcces
s' must be initialized by a constant expression
} easyAccess[] = {
  ^              ~
1 error generated.

No idea what's going on... Perhaps it's strict about those function pointers not being constants themselves?

@neheb
Copy link
Collaborator Author

neheb commented Mar 22, 2023

No they're pointers. Using & results in a const pointer unless you const_cast.

Maybe one of those functions is missing for some reason.

@neheb
Copy link
Collaborator Author

neheb commented Mar 22, 2023

According to ChatGPT:

The error you're seeing is caused by the fact that the Exiv2::ExifData::const_iterator type is not a literal type, which means it cannot be used in a constexpr context.

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