Skip to content

plugin_lint_mac test fails on Xcode 14.3: a function declaration without a prototype is deprecated in all versions of C #125812

@jmagman

Description

@jmagman
pod lib lint packages/integration_test/ios/integration_test.podspec --no-clean

fails on Xcode 14.3 in CI:

App/main.m:4:9: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]

https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8782535317087304833/+/u/run_plugin_lint_mac/test_stdout

This is because

int main() {}

causes the warning in 14.3. This was reported in CocoaPods/CocoaPods#11846 and fixed in CocoaPods 1.12.1 in CocoaPods/CocoaPods#11847 which changed it to:

int main(void) {}

CI version of CocoaPods needs to be updated to 1.12.2. This is blocked by #122057.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listplatform-iosiOS applications specificallyplatform-macBuilding on or for macOS specificallyteam-infraOwned by Infrastructure teamtriaged-infraTriaged by Infrastructure team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions