Skip to content

Commit

Permalink
ci: avoid using named initializers in file, otherwise we run into a G…
Browse files Browse the repository at this point in the history
…CC bug

This code won't compile with older GCC versions, due to a known bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227
  • Loading branch information
midwan committed Sep 17, 2024
1 parent 8cf8388 commit 785ed29
Showing 1 changed file with 70 additions and 36 deletions.
106 changes: 70 additions & 36 deletions src/pcem/vid_cl5429.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3057,80 +3057,114 @@ void gd5429_add_status_info(char *s, int max_len, void *p)
static device_config_t avga2_config[] =
{
{
.name = "memory",
.description = "Memory size",
.type = CONFIG_SELECTION,
.default_int = 512,
.selection =
"memory", // name
"Memory size", // description
CONFIG_SELECTION, // type
"", // default_string
512, // default_int
{
{
.description = "256 kB",
.value = 256
"", // description
256 // value
},
{
.description = "512 kB",
.value = 512
"", // description
512 // value
},
{
.description = ""
"", // description
0 // value (end of selection)
}
},
}
},
{
.type = -1
"", // name (end of config)
"", // description
-1, // type
"", // default_string
0, // default_int
{
{
"", // description
0 // value
}
}
}
};

static device_config_t gd5429_config[] =
{
{
.name = "memory",
.description = "Memory size",
.type = CONFIG_SELECTION,
.default_int = 2,
.selection =
"memory", // name
"Memory size", // description
CONFIG_SELECTION, // type
"", // default_string
2, // default_int
{
{
.description = "1 MB",
.value = 1
"1 MB", // description
1 // value
},
{
.description = "2 MB",
.value = 2
"2 MB", // description
2 // value
},
{
.description = ""
"", // description (end of selection)
0 // value
}
},
}
},
{
.type = -1
"", // name (end of config)
"", // description
-1, // type
"", // default_string
0, // default_int
{
{
"", // description
0 // value
}
}
}
};

static device_config_t gd5434_config[] =
{
{
.name = "memory",
.description = "Memory size",
.type = CONFIG_SELECTION,
.default_int = 4,
.selection =
"memory", // name
"Memory size", // description
CONFIG_SELECTION, // type
"", // default_string
4, // default_int
{
{
.description = "2 MB",
.value = 2
"2 MB", // description
2 // value
},
{
.description = "4 MB",
.value = 4
"4 MB", // description
4 // value
},
{
.description = ""
"", // description (end of selection)
0 // value
}
},
}
},
{
.type = -1
"", // name (end of config)
"", // description
-1, // type
"", // default_string
0, // default_int
{
{
"", // description
0 // value
}
}
}
};

Expand Down

0 comments on commit 785ed29

Please sign in to comment.