~ chicken-core (chicken-5) 3ac5bf73c0bec0c5f230ac685e4a17d69a7ea382
commit 3ac5bf73c0bec0c5f230ac685e4a17d69a7ea382 Author: Jim Ursetto <zbigniewsz@gmail.com> AuthorDate: Mon Jan 16 00:02:09 2012 -0600 Commit: Christian Kellermann <ckeen@pestilenz.org> CommitDate: Mon Jan 16 14:40:54 2012 +0100 Use flexible array member in C99 mode; silences clang array bounds warnings [#778] Signed-off-by: Christian Kellermann <ckeen@pestilenz.org> diff --git a/chicken.h b/chicken.h index fecdcee2..2ced110b 100644 --- a/chicken.h +++ b/chicken.h @@ -675,7 +675,11 @@ static inline int isinf_ld (long double x) typedef struct C_block_struct { C_header header; +#if (__STDC_VERSION__ >= 199901L) + C_word data[]; +#else C_word data[ 1 ]; +#endif } C_SCHEME_BLOCK; typedef struct C_symbol_table_structTrap