Skip to content

Fixed deprecation warning on OSX#45

Open
Felix-Brodmann wants to merge 1 commit intozserge:mainfrom
Felix-Brodmann:patch-1
Open

Fixed deprecation warning on OSX#45
Felix-Brodmann wants to merge 1 commit intozserge:mainfrom
Felix-Brodmann:patch-1

Conversation

@Felix-Brodmann
Copy link
Copy Markdown

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