Skip to content

yarpgen (v1) is using an empty initializer list, when --std=c99 is selected, but that's a c23 feature #173

@winspool

Description

@winspool

While testing yarpgen (v1) with --std=c99 and OpenWatcom,
compilation breaks, because yarpgen (v1) is created an empty initializer list, which is a c23 feature.
(as example: driver.c, line 890 + 895: created with yarpgen1 --std=c99 -m 32 -s 135)

I added a feature request for OpenWatcom, but violating the c standard is a fault on the yarpgen side.

Source and helper scripts attached: 00135.zip

xref to the report in OpenWatcom:
open-watcom/open-watcom-v2#1044

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions