Skip to content

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

Closed
flutter/packages
#3657

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

Activity

  1. added
    packageflutter/packages repository. See also p: labels.
    p: pigeonrelated to pigeon messaging codegen tool
    on Apr 6, 2023
  2. stuartmorgan-g commented on Apr 6, 2023

    @stuartmorgan-g
    Contributor

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

    Hm, where exactly are you seeing this? Is it an Xcode version thing maybe?

    (I just build the url_launcher_ios example in Xcode 14.0 and didn't see it for example.)

  3. added
    P2Important issues not at the top of the work list
    on Apr 6, 2023
  4. jmagman commented on Apr 6, 2023

    @jmagman
    MemberAuthor

    I'm on 14.3, guess this is new. I'll check on 14.2 when I get a chance.

  5. stuartmorgan-g commented on Apr 6, 2023

    @stuartmorgan-g
    Contributor

    Yep, it's new in clang 15/Xcode 14.3 based on some threads I found. E.g., https://developer.apple.com/forums/thread/725753

  6. github-actions commented on Apr 21, 2023

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  7. locked as resolved and limited conversation to collaborators on Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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