[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#5747) collect overlay does not compile with C89



Full_Name: Hallvard B Furuseth
Version: HEAD, RE24
OS: 
URL: 
Submission from: (NULL) (129.240.6.233)
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.
Maybe later...