>From 5fbefcebe8d1ce34c81986093399730d0941eeeb Mon Sep 17 00:00:00 2001 From: Evan Hanson Date: Thu, 19 Jan 2017 20:33:25 +1300 Subject: [PATCH] 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. --- chicken.h | 4 ---- 1 file changed, 4 deletions(-) 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 -- 2.11.0