googlemaps / googlemaps/google-maps-ios-utils

-Wenum-enum-conversion error in GMUHeatmapTileLayer.m with Xcode 26 / Clang 16+

Open
#570 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
778
Forks
441
PR merge metrics
No merged PRs in 30d

Description

Starting with Xcode 26 (Clang 16+), the compiler flags a bitwise OR between CGBitmapInfo and CGImageAlphaInfo enum types under -Wenum-enum-conversion.

In Sources/GoogleMapsUtilsObjC/include/GMUHeatmapTileLayer.m: `colorSpaceRef, kCGBitmapByteOrder32Big | kCGImageAlphaLast`

`kCGBitmapByteOrder32Big` is a `CGBitmapInfo` value and `kCGImageAlphaLast` is a `CGImageAlphaInfo` value. While combining these with bitwise OR is common and intended by Apple's API design, Clang 16+ now warns about it.

This causes build failures for projects that use -Werror (treat warnings as errors), such as Flutter's CI.

Environment: Xcode 26.4, iOS 26 SDK

Related: [flutter/flutter/issues/184470](vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/workbench.html)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.