Skip to content

Pigeon generated Objective-C code produces warning A function declaration without a prototype is deprecated in all versions of C #124343

@jmagman

Description

@jmagman

In the implementation:

url_launcher_ios-6.1.3/ios/Classes/messages.g.m:27:57 A function declaration without a prototype is deprecated in all versions of C
NSObject<FlutterMessageCodec> *FULUrlLauncherApiGetCodec() {

should have a void:

NSObject<FlutterMessageCodec> *FULUrlLauncherApiGetCodec(void) {

https://github.com/flutter/packages/blob/36d412490a5fb90811902c5d91c95a9debf39b49/packages/pigeon/lib/objc_generator.dart#L781-L782

Not sure why none of our scripts in CI caught the warning.

cc @tarrinneal flutter/packages#3037

Metadata

Metadata

Labels

P2Important issues not at the top of the work listp: pigeonrelated to pigeon messaging codegen toolpackageflutter/packages repository. See also p: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions