Skip to content

Missing return in function #7

@enclle

Description

@enclle

Hello,

I downloaded OpenDwarfs and tried to compile on Mac OS X following the README instructions, then I got the error:

../include/common_args.c:231:1: error: control reaches end of non-void function
[-Werror,-Wreturn-type]

To correct this error, just add a return 0; to the line 231 of the file common_args.c and it will compile, but you need either to correct the function signature and change int to void, or supply the correct returns inside the function.

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