Skip to content

generated main should be int not void #12

@erikkaplun

Description

@erikkaplun

Consider http://lpaste.net/470595860065943552:

Currently, the main function generated by writeC has void as it's return type, leading to:

main.c:90:1: error: 'main' must return 'int'
void main()
^~~~
int
1 error generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions