~ chicken-core (chicken-5) 2a32b6f87326857e95ec83167ec4bbaf812f1e30


commit 2a32b6f87326857e95ec83167ec4bbaf812f1e30
Author:     Evan Hanson <evhan@foldling.org>
AuthorDate: Thu Jan 19 20:33:25 2017 +1300
Commit:     Peter Bex <peter@more-magic.net>
CommitDate: Sun Jan 22 13:45:40 2017 +0100

    Fix spurious array bounds warnings on OpenBSD
    
    This changes the C_block_item struct definition to always use a
    C99-style flexible array for its data field rather than falling back to
    the "struct hack" on non-C99 compilers, which was causing bound analysis
    warnings on OpenBSD.
    
    Fixes #1107.
    
    Signed-off-by: Peter Bex <peter@more-magic.net>

diff --git a/chicken.h b/chicken.h
index e610f419..0e36b6ce 100644
--- a/chicken.h
+++ b/chicken.h
@@ -767,11 +767,7 @@ 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_struct
Trap