Skip to content

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

Description

@okorohelijah

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions