[Date Prev][Date Next]
(ITS#5747) collect overlay does not compile with C89
Full_Name: Hallvard B Furuseth
Version: HEAD, RE24
Submission from: (NULL) (126.96.36.199)
Submitted by: hallvard
overlays/collect.c:struct collect_info.ci_ad is a C99 flexible array member.
Rewriting to use a C89 "struct hack" variant for C89 except gcc.
That may be formally incorrect, but normally it works. The correct
way would be to use offsetof() to access the struct member.