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

Fix missing cast to void* in %p format #17683

Merged
merged 1 commit into from Apr 16, 2020
Merged

Conversation

yol
Copy link
Member

@yol yol commented Apr 15, 2020

POSIX says %p argument must be pointer to void. Newer libfmt seems to
have an issue with arbitary pointers, even failing at compile time, so
make sure the cast is there.

@yol yol added Type: Fix non-breaking change which fixes an issue v19 Matrix labels Apr 15, 2020
@yol yol added this to the Matrix 19.0-alpha 1 milestone Apr 15, 2020
@yol yol requested a review from popcornmix April 15, 2020 18:35
@yol yol self-assigned this Apr 15, 2020
@lrusak
Copy link
Contributor

lrusak commented Apr 15, 2020

Would it not make more sense to just update the log call to use {} everywhere and add fmt::ptr(picture.decodedData)?

@yol
Copy link
Member Author

yol commented Apr 15, 2020

I just didn't want to touch more than absolutely necessary :P

@yol
Copy link
Member Author

yol commented Apr 15, 2020

funny, fmt::ptr is not even in the docs m(

@yol
Copy link
Member Author

yol commented Apr 16, 2020

@lrusak updated

POSIX says %p argument must be pointer to void. Newer libfmt seems to
have an issue with arbitary pointers, even failing at compile time, so
make sure the cast is there (fmt::ptr casts to void*).
Copy link
Contributor

@phunkyfish phunkyfish left a comment

Choose a reason for hiding this comment

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

LGTM

@lrusak lrusak merged commit ea39b4f into xbmc:master Apr 16, 2020
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Apr 17, 2020
Fix missing cast to void* in %p format
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Apr 17, 2020
Fix missing cast to void* in %p format
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Apr 17, 2020
Fix missing cast to void* in %p format
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Apr 17, 2020
Fix missing cast to void* in %p format
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Apr 17, 2020
Fix missing cast to void* in %p format
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Apr 17, 2020
Fix missing cast to void* in %p format
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Apr 17, 2020
Fix missing cast to void* in %p format
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Apr 18, 2020
Fix missing cast to void* in %p format
@yol yol deleted the fix-fmt-pointer branch April 19, 2020 13:37
Maven85 pushed a commit to Maven85/kodi that referenced this pull request May 5, 2020
Fix missing cast to void* in %p format
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Aug 3, 2020
Fix missing cast to void* in %p format
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Aug 4, 2020
Fix missing cast to void* in %p format
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Aug 4, 2020
Fix missing cast to void* in %p format
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Aug 5, 2020
Fix missing cast to void* in %p format
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Aug 5, 2020
Fix missing cast to void* in %p format
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Aug 6, 2020
Fix missing cast to void* in %p format
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Aug 6, 2020
Fix missing cast to void* in %p format
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Aug 6, 2020
Fix missing cast to void* in %p format
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Aug 7, 2020
Fix missing cast to void* in %p format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Fix non-breaking change which fixes an issue v19 Matrix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants