Skip to content

Conversation

@Felix-Brodmann
Copy link

Changed kCGImageAlphaNoneSkipFirst | kCGBitmapByteOrder32Little
to (CGBitmapInfo)kCGImageAlphaNoneSkipFirst | (CGBitmapInfo)kCGBitmapByteOrder32Little in
order to fix -Wdeprecated-anon-enum-enum-conversion on OSX

The warning when compiling was:
bitwise operation between different enumeration types ('CGImageAlphaInfo' and 'unnamed enum') is deprecated

Apples Headers changed and now recommend to cast both of them into a CGBitmapInfo

This change does not affect runtime behavior, it only resolves the deprecation warning and follows Apple's recommended usage.

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.

1 participant