Skip to content

Void parameters in function declaration #81

Open
@ShivamSarodia

Description

Void parameters in function declaration behave oddly right now.

int main(void) { }

produces an error of "function definition missing parameter name", and int func(void a, void b) { } is accepted by the compiler and does who-knows-what. The behavior of void in function declaration/definition parameters should be normalized.

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions