Skip to content

Fix iOS AVEngine error variable after warning cleanup - #8674

Merged
danoli3 merged 1 commit into
openframeworks:masterfrom
danoli3:fix-ios-avengine-error
Nov 14, 2026
Merged

danoli3 merged 1 commit into
openframeworks:masterfrom
danoli3:fix-ios-avengine-error

Conversation

@danoli3

@danoli3 danoli3 commented Nov 14, 2026

Copy link
Copy Markdown
Member

Enabling the AVEngine sound player on iOS fails to compile after #8621: init still passes &error to setPrefersNoInterruptionsFromSystemAlerts:, but the warning cleanup removed its declaration.

Declare NSError *error = nil inside the existing iOS 14.5 availability block. This restores the iOS code path while keeping the declaration out of macOS builds.

Validation: compiled the complete ofAVEngineSoundPlayer.mm translation unit with -fsyntax-only, ARC, the ARM64 iOS simulator SDK, and OF_NO_FMOD enabled. The merged master source produces four undeclared-identifier diagnostics; this change passes. git diff --check also passes.

@danoli3
danoli3 merged commit 9e114ab into openframeworks:master Nov 14, 2026
28 checks passed
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