intel / yarpgen

Yet Another Random Program Generator
Other
469 stars 50 forks source link

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

Open winspool opened 1 year ago

winspool commented 1 year ago

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: https://github.com/open-watcom/open-watcom-v2/issues/1044